#!/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
set -e
+# Smartmontools Signing Key (through 2012)
+KEYID=0x2753E77A
+
inc_release()
{
MINOR=`echo $VERSION | cut -d. -f2`
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
rm -rvf build
md5sum $TARFILE > $TARFILE.md5
-sha1sum $TARFILE > $TARFILE.sha1
# Increase release number
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
+