Updated release script
This commit is contained in:
parent
3810080be2
commit
8e5a1a3848
1 changed files with 9 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Usage: ./make_release.sh
|
||||
# Creates a tar.bz2 archive of the current tree.
|
||||
# Creates a tar.gz archive of the current tree.
|
||||
#
|
||||
# To bump the version number for the current commit (make sure you are in HEAD!), run manually:
|
||||
#
|
||||
|
@ -9,7 +9,7 @@
|
|||
#
|
||||
# To generate a release for an older tagged commit, first list the tags with:
|
||||
#
|
||||
# git tags
|
||||
# git tag
|
||||
#
|
||||
# then checkout the tagged commit with:
|
||||
#
|
||||
|
@ -18,6 +18,8 @@
|
|||
# Finally, to revert to HEAD:
|
||||
#
|
||||
# git checkout master
|
||||
#
|
||||
# See more at https://gitlab.com/o9000/tint2/wikis/Development
|
||||
|
||||
VERSION=$(./get_version.sh --strict)
|
||||
if [ ! $? -eq 0 ]
|
||||
|
@ -27,8 +29,9 @@ then
|
|||
fi
|
||||
|
||||
DIR=tint2-$VERSION
|
||||
ARCHIVE=$DIR.tar.gz
|
||||
echo "Making release $DIR"
|
||||
rm -rf $DIR
|
||||
rm -rf $DIR $ARCHIVE
|
||||
|
||||
git checkout-index --prefix=$DIR/ -a
|
||||
|
||||
|
@ -38,8 +41,8 @@ rm -f $DIR/make_release.sh
|
|||
echo "echo \"#define VERSION_STRING \\\"$VERSION\\\"\" > version.h" > $DIR/get_version.sh
|
||||
|
||||
# Create tarball and remove the exported directory
|
||||
tar -cjf $DIR.tar.bz2 $DIR
|
||||
tar -czf $ARCHIVE $DIR
|
||||
rm -rf $DIR
|
||||
|
||||
sha1sum -b $DIR.tar.bz2
|
||||
sha256sum -b $DIR.tar.bz2
|
||||
sha1sum -b $ARCHIVE
|
||||
sha256sum -b $ARCHIVE
|
||||
|
|
Loading…
Reference in a new issue