tint2/make_release.sh

20 lines
393 B
Bash
Raw Permalink Normal View History

#!/bin/bash
2015-04-24 16:45:25 +00:00
# Usage: ./make_release.sh
2015-04-26 08:47:53 +00:00
# Creates a tar.gz archive of the current tree.
2015-04-24 22:07:25 +00:00
VERSION=$(./get_version.sh --strict)
2015-04-24 17:40:38 +00:00
if [ ! $? -eq 0 ]
then
echo >&2 "Error: get_version.sh failed!"
exit 1
fi
2017-03-25 10:49:37 +00:00
ARCHIVE=tint2-$VERSION.tar.gz
2017-03-25 10:49:37 +00:00
echo "Making release tint2-$VERSION"
git archive --format=tar.gz --prefix=tint2-$VERSION/ v$VERSION >$ARCHIVE
2015-04-24 16:45:25 +00:00
2015-04-26 08:47:53 +00:00
sha1sum -b $ARCHIVE
sha256sum -b $ARCHIVE