1
0
mirror of https://github.com/wting/autojump synced 2024-09-28 22:10:45 +00:00
wting_autojump/make_release.sh
2011-11-18 14:27:31 +01:00

28 lines
527 B
Bash
Executable File

#!/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
tagname=release-${version}
./git-version.sh ${tagname}
# Commit the version change
git commit -m "version numbering" autojump
#Create tag
git tag -a ${tagname}
#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}/ ${tagname} | gzip > autojump_${version}.tar.gz