Fix broken release package.

The license file, which is not version-controlled, got lost during branch
switching and was not included in the 2.4.0 ZIP file.

Improved the release script so that it aborts if tar has errors.
This commit is contained in:
Daniel Kraus
2014-06-06 06:02:49 +02:00
parent 143a347372
commit 8e1548aa48
2 changed files with 14 additions and 7 deletions

3
NEWS
View File

@ -1,3 +1,6 @@
LinkTitles 2.4.1: 2014-06-06
* The ZIP file for 2.4.0 had missing files.
LinkTitles 2.4.0: 2014-06-06 LinkTitles 2.4.0: 2014-06-06
* Prevent linking to self via redirects. * Prevent linking to self via redirects.
* Prevent linking inside <pre>, <html>, and <script> tags. * Prevent linking inside <pre>, <html>, and <script> tags.

View File

@ -14,11 +14,15 @@ FILENAME="release/LinkTitles-$1.tar.gz"
# Pack the relevant files into at tarball, renaming the paths to include the # Pack the relevant files into at tarball, renaming the paths to include the
# root path "LinktTitles". # root path "LinktTitles".
tar cvzf $FILENAME gpl-*.txt NEWS LinkTitles.* --exclude '*~' --transform 's,^,LinkTitles/,' tar cvzf $FILENAME gpl-*.txt README.md NEWS *.php --exclude '*~' --transform 's,^,LinkTitles/,'
if [[ $? -eq 0 ]]; then
# Add the tarball to the repository, commit it, then tag the commit and push to origin. # Add the tarball to the repository, commit it, then tag the commit and push to origin.
git add $FILENAME git add $FILENAME
git commit -m "Release version $1" git commit -m "Release version $1"
git tag -a $1 -m "Version $1." git tag -a $1 -m "Version $1."
git push git push
git push --tags git push --tags
else
echo "tar had errors, did not push."
fi