X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=do_release;h=66c6fc76f2f87d67957cf3da64b829728f5ef7cf;hb=f55b7a7b37eda529795f2a8207ef78a8168f7721;hp=967f9b7ce4d766a77307b7e1e0c27324e2d4efb7;hpb=c92c14edb59332484bb782ff799f1a06a8eef30a;p=mirror_smartmontools-debian.git diff --git a/do_release b/do_release index 967f9b7..66c6fc7 100755 --- a/do_release +++ b/do_release @@ -1,10 +1,10 @@ #!/bin/bash # # do a smartmontools release -# (C) 2003-9 Bruce Allen , -# Guido Guenther -# Christian Franke -# $Id: do_release 2997 2009-12-11 21:25:59Z chrfranke $ +# (C) 2003-11 Bruce Allen , +# Guido Guenther +# Christian Franke +# $Id: do_release 3282 2011-03-04 19:26:59Z chrfranke $ # Notes on generating releases: # (1) update NEWS @@ -15,6 +15,9 @@ set -e +# Smartmontools Signing Key (through 2012) +KEYID=0x2753E77A + inc_release() { MINOR=`echo $VERSION | cut -d. -f2` @@ -59,10 +62,10 @@ if [ -n "${REV//[0-9]/}" ]; then fi (cd $WDROOT && svn status) | while read s; do - case "$s" in - "M "$DIRPAT/smartmontools/CHANGELOG) echo "$s: OK";; - "M "$DIRPAT/smartmontools/NEWS) echo "$s: OK";; - "M "$DIRPAT/smartmontools/configure.in) echo "$s: OK";; + case "`echo $s | tr -s ' '`" in + "M "$DIRPAT/smartmontools/CHANGELOG) echo "$s: OK";; + "M "$DIRPAT/smartmontools/NEWS) echo "$s: OK";; + "M "$DIRPAT/smartmontools/configure.in) echo "$s: OK";; *) echo "$s: not allowed"; exit 1;; esac done @@ -126,7 +129,6 @@ mv -f build/smartmontools-$VERSION.tar.gz $TARFILE rm -rvf build md5sum $TARFILE > $TARFILE.md5 -sha1sum $TARFILE > $TARFILE.sha1 # Increase release number if [ -z "$RC" -a "$DIRPAT" = "trunk" ]; then @@ -137,3 +139,8 @@ if [ -z "$RC" -a "$DIRPAT" = "trunk" ]; then fi fi +# Sign tarball +if [ -n "$KEYID" ] && gpg --list-secret-keys $KEYID >/dev/null 2>/dev/null; then + gpg --default-key $KEYID --armor --detach-sign ./smartmontools-$VERSIONRC.tar.gz +fi +