mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 09:49:31 +02:00
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:
3
NEWS
3
NEWS
@ -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
|
||||
* Prevent linking to self via redirects.
|
||||
* Prevent linking inside <pre>, <html>, and <script> tags.
|
||||
|
@ -14,11 +14,15 @@ FILENAME="release/LinkTitles-$1.tar.gz"
|
||||
|
||||
# Pack the relevant files into at tarball, renaming the paths to include the
|
||||
# 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.
|
||||
git add $FILENAME
|
||||
git commit -m "Release version $1"
|
||||
git tag -a $1 -m "Version $1."
|
||||
git push
|
||||
git push --tags
|
||||
else
|
||||
echo "tar had errors, did not push."
|
||||
fi
|
||||
|
Reference in New Issue
Block a user