]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tools: use gpg-aggent in ko-release-gen
authorKarel Zak <kzak@redhat.com>
Tue, 7 Feb 2012 10:30:56 +0000 (11:30 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 7 Feb 2012 10:30:56 +0000 (11:30 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tools/ko-release-gen

index b95af2ea9bd21328ffe2c897e3f71e3f328603e1..92b3f7a58e182e12b7dcad3a0a5664ed56b41988 100755 (executable)
@@ -26,7 +26,7 @@ VERSION=$(cat .version)
 VERSION_MAJOR=$(echo $VERSION | sed 's/-rc[0-9]//')
 DISTDIR=${1:-"kernel.org"}/v${VERSION_MAJOR}
 
-GPG_CMD="gpg --use-agent --armor --detach-sign --quiet --batch"
+GPG_CMD="gpg --use-agent --armor --detach-sign --quiet"
 
 function die {
        echo $1
@@ -76,9 +76,13 @@ function add_html_dir {
 
 rm -rf $DISTDIR
 
+eval $(gpg-agent --daemon)
+
 add_file       util-linux-${VERSION}.tar.xz
 add_file       v${VERSION}-ChangeLog
 add_file       Documentation/releases/v${VERSION_MAJOR}-ReleaseNotes
 add_html_dir   libmount/docs/html libmount-docs
 add_html_dir   libblkid/docs/html libblkid-docs
 
+killall gpg-agent
+