]> git.proxmox.com Git - mirror_smartmontools-debian.git/blobdiff - do_release
Updated changelog
[mirror_smartmontools-debian.git] / do_release
index 967f9b7ce4d766a77307b7e1e0c27324e2d4efb7..66c6fc76f2f87d67957cf3da64b829728f5ef7cf 100755 (executable)
@@ -1,10 +1,10 @@
 #!/bin/bash
 #
 # do a smartmontools release
-# (C) 2003-9 Bruce Allen <ballen4705@users.sourceforge.net>,
-#            Guido Guenther <agx@sigxcpu.org>
-#            Christian Franke <smartmontools-support@lists.sourceforge.net>
-# $Id: do_release 2997 2009-12-11 21:25:59Z chrfranke $
+# (C) 2003-11 Bruce Allen <ballen4705@users.sourceforge.net>,
+#             Guido Guenther <agx@sigxcpu.org>
+#             Christian Franke <smartmontools-support@lists.sourceforge.net>
+# $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
+