1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

small script to make releases with git

This commit is contained in:
Joël Schaerer 2010-08-25 11:49:33 +02:00
parent 145b8ee43e
commit dfe7626251

18
make_release.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
if [ $# -ne 1 ]
then
echo "Usage: `basename $0` release"
echo "where release is of the form v11, v12, ..."
exit 1
fi
version=$1
#check for tag existence
git describe release-$1 2>&1 >/dev/null ||
{
echo "Invalid version $1"
exit 1
}
git archive --format=tar --prefix autojump_${version}/ release-${version} | gzip > autojump_${version}.tar.gz