2010-08-25 09:49:33 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2011-09-24 09:48:26 +00:00
|
|
|
|
2010-08-25 09:49:33 +00:00
|
|
|
if [ $# -ne 1 ]
|
|
|
|
then
|
|
|
|
echo "Usage: `basename $0` release"
|
|
|
|
echo "where release is of the form v11, v12, ..."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
version=$1
|
2011-11-18 13:25:54 +00:00
|
|
|
tagname=release-${version}
|
|
|
|
./git-version.sh ${tagname}
|
|
|
|
|
|
|
|
# Commit the version change
|
|
|
|
git commit autojump
|
2010-08-25 09:49:33 +00:00
|
|
|
|
2011-09-24 09:48:26 +00:00
|
|
|
#Create tag
|
2011-11-18 13:25:54 +00:00
|
|
|
git tag -a ${tagname}
|
2011-09-24 09:48:26 +00:00
|
|
|
|
2010-08-25 09:49:33 +00:00
|
|
|
#check for tag existence
|
|
|
|
git describe release-$1 2>&1 >/dev/null ||
|
|
|
|
{
|
|
|
|
echo "Invalid version $1"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2011-11-18 13:25:54 +00:00
|
|
|
git archive --format=tar --prefix autojump_${version}/ ${tagname} | gzip > autojump_${version}.tar.gz
|