diff --git a/make_release.sh b/make_release.sh index 103e85f..3ff9ab0 100755 --- a/make_release.sh +++ b/make_release.sh @@ -1,5 +1,6 @@ #!/bin/bash + if [ $# -ne 1 ] then echo "Usage: `basename $0` release" @@ -8,6 +9,9 @@ then fi version=$1 +#Create tag +git tag -a release-${version} + #check for tag existence git describe release-$1 2>&1 >/dev/null || { @@ -15,4 +19,5 @@ git describe release-$1 2>&1 >/dev/null || exit 1 } +./git-version.sh git archive --format=tar --prefix autojump_${version}/ release-${version} | gzip > autojump_${version}.tar.gz