From 81dec06066c806557a8cd953ff70a92df6f44377 Mon Sep 17 00:00:00 2001 From: Laurence Withers Date: Tue, 15 Nov 2011 16:41:22 +0000 Subject: [PATCH] version.sh: use signed (annotated) git tags --- scripts/version.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/version.sh b/scripts/version.sh index de0540c..c16c9c5 100755 --- a/scripts/version.sh +++ b/scripts/version.sh @@ -68,8 +68,15 @@ bump_somicro() { } do_tag() { + local tag_args="" source "./version" - git tag "${VERMAJOR}.${VERMINOR}.${VERMICRO}" + if [ -n "${PGP_KEYID}" ] + then + tag_args="-u ${PGP_KEYID} ${tag_args}" + else + tag_args="-a" + fi + git tag ${tag_args} "${VERMAJOR}.${VERMINOR}.${VERMICRO}" } do_push() { @@ -79,6 +86,8 @@ do_push() { set -ex +source "${HOME}/.lwbuildrc" + while [ $# -ne 0 ] do case $1 in