version.sh: use signed (annotated) git tags

This commit is contained in:
Laurence Withers 2011-11-15 16:41:22 +00:00
parent 2f748ff59b
commit 81dec06066
1 changed files with 10 additions and 1 deletions

View File

@ -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