From: Travis Cross Date: Sat, 24 Sep 2011 06:24:49 +0000 (+0000) Subject: Add ability to sign releases with tagscript X-Git-Tag: v1.2-rc1~19^2^2~68^2~53^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=803d25c45c4d92035ed78dc0bcec1d43c9cefa20;p=thirdparty%2Ffreeswitch.git Add ability to sign releases with tagscript --- diff --git a/scripts/tagscript.sh b/scripts/tagscript.sh index 44797b3640..1ac817cb74 100755 --- a/scripts/tagscript.sh +++ b/scripts/tagscript.sh @@ -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