Add ability to sign releases with tagscript

This commit is contained in:
Travis Cross 2011-09-24 06:24:49 +00:00
parent ee95a35b71
commit 803d25c45c
1 changed files with 14 additions and 3 deletions

View File

@ -7,9 +7,20 @@ if [ ! -d .git ]; then
exit 1;
fi
if [ -z "$1" ]; then
echo "usage: ./scripts/tagscript.sh MAJOR.MINOR.MICRO[.REVISION]" 1>&2
showusage() {
echo "usage: ./scripts/tagscript.sh [-s] MAJOR.MINOR.MICRO[.REVISION]" 1>&2
exit 1;
}
while getopts "s" o; do
case "$o" in
s) opts="-s" ;;
esac
done
shift $(($OPTIND-1))
if [ -z "$1" ]; then
showusage
fi
ver="$1"
@ -46,7 +57,7 @@ fi
git add configure.in
git commit -m "Release freeswitch-$ver"
git tag -a -m "freeswitch-$ver release" v$ver
git tag -a ${opts} -m "freeswitch-$ver release" v$ver
git clone $src_repo $dst_dir
if [ -n "$stash_saved" ]; then