script: sign library releases with Samba Library Distribution Key
authorAndrew Tridgell <tridge@samba.org>
Fri, 11 Feb 2011 05:05:47 +0000 (16:05 +1100)
committerAndrew Tridgell <tridge@samba.org>
Mon, 14 Feb 2011 06:55:08 +0000 (17:55 +1100)
script/librelease.sh

index 1c75bf1c145cdcb51a7ccbfcc1a59051c7b20253..b2bc9e712a17e9d8bd4f785d55ded853e66e8859 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/bash
 # make a release of a Samba library
 
+GPG_USER='Samba Library Distribution Key <samba-bugs@samba.org>'
+
 if [ ! -d ".git" ]; then
        echo "Run this script from the top-level directory in the"
        echo "repository"
@@ -41,7 +43,7 @@ release_lib() {
 
     echo "signing"
     rm -f "$tarname.asc"
-    gpg --detach-sign --armor $tarname || exit 1
+    gpg -u "$GPG_USER" --detach-sign --armor $tarname || exit 1
     [ -f "$tarname.asc" ] || {
        echo "Failed to create signature $tarname.asc"
        exit 1