mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 01:02:12 +00:00
Add ability to sign releases with tagscript
This commit is contained in:
parent
ee95a35b71
commit
803d25c45c
@ -7,9 +7,20 @@ if [ ! -d .git ]; then
|
|||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
showusage() {
|
||||||
echo "usage: ./scripts/tagscript.sh MAJOR.MINOR.MICRO[.REVISION]" 1>&2
|
echo "usage: ./scripts/tagscript.sh [-s] MAJOR.MINOR.MICRO[.REVISION]" 1>&2
|
||||||
exit 1;
|
exit 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
while getopts "s" o; do
|
||||||
|
case "$o" in
|
||||||
|
s) opts="-s" ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
shift $(($OPTIND-1))
|
||||||
|
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
showusage
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ver="$1"
|
ver="$1"
|
||||||
@ -46,7 +57,7 @@ fi
|
|||||||
|
|
||||||
git add configure.in
|
git add configure.in
|
||||||
git commit -m "Release freeswitch-$ver"
|
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
|
git clone $src_repo $dst_dir
|
||||||
if [ -n "$stash_saved" ]; then
|
if [ -n "$stash_saved" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user