librelease.sh: Move the GPG data to the library section.
authorKarolin Seeger <kseeger@samba.org>
Tue, 2 Oct 2012 08:29:16 +0000 (10:29 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 2 Oct 2012 12:28:10 +0000 (14:28 +0200)
Don't use the Library key for the samba releases.

Karolin

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 7eb1f6ff178cb04a04dcaee88f15be850d239430)

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Oct  2 14:28:10 CEST 2012 on sn-devel-104

script/librelease.sh

index ac82762d307a60f615d25e43c50f6b0f860bc9ab..5119ca4aca78bf5543623fe080ff94a3ade5b4c6 100755 (executable)
@@ -1,14 +1,6 @@
 #!/bin/bash
 # make a release of a Samba library
 
-[ -z "$GPG_USER" ] && {
-    GPG_USER='Samba Library Distribution Key <samba-bugs@samba.org>'
-}
-
-[ -z "$GPG_KEYID" ] && {
-    GPG_KEYID='13084025'
-}
-
 if [ ! -d ".git" ]; then
        echo "Run this script from the top-level directory in the"
        echo "repository"
@@ -67,6 +59,11 @@ release_lib() {
        exit 1
     }
 
+    [ -z "$ftpdir" ] && {
+        popd
+        return 0
+    }
+
     echo "Push git tag $tagname"
     git push ssh://git.samba.org/data/git/samba.git refs/tags/$tagname:refs/tags/$tagname || {
        exit 1
@@ -84,10 +81,27 @@ release_lib() {
 for lib in $*; do
     case $lib in
        talloc | tdb | tevent | ldb)
+           [ -z "$GPG_USER" ] && {
+               GPG_USER='Samba Library Distribution Key <samba-bugs@samba.org>'
+           }
+
+           [ -z "$GPG_KEYID" ] && {
+               GPG_KEYID='13084025'
+           }
+
            release_lib $lib "lib/$lib" $lib
            ;;
-       samba4)
-           release_lib $lib "." "samba/$lib"
+       samba)
+           [ -z "$GPG_USER" ] && {
+               GPG_USER='6568B7EA'
+           }
+
+           [ -z "$GPG_KEYID" ] && {
+               GPG_KEYID='6568B7EA'
+           }
+
+           # for now we don't upload
+           release_lib $lib "." ""
            ;;
        *)
            echo "Unknown library $lib"