summaryrefslogtreecommitdiffstats
path: root/tools/ko-release-gen
diff options
context:
space:
mode:
authorKarel Zak2012-02-07 11:30:56 +0100
committerKarel Zak2012-02-07 11:30:56 +0100
commit0892d88d1a3c155b2791a5137182ab98a22a7bac (patch)
tree030fb24192ec020df6a83ea9386eebd25eb90d91 /tools/ko-release-gen
parentbuild-sys: release++ (v2.21-rc2) (diff)
downloadkernel-qcow2-util-linux-0892d88d1a3c155b2791a5137182ab98a22a7bac.tar.gz
kernel-qcow2-util-linux-0892d88d1a3c155b2791a5137182ab98a22a7bac.tar.xz
kernel-qcow2-util-linux-0892d88d1a3c155b2791a5137182ab98a22a7bac.zip
tools: use gpg-aggent in ko-release-gen
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tools/ko-release-gen')
-rwxr-xr-xtools/ko-release-gen6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/ko-release-gen b/tools/ko-release-gen
index b95af2ea9..92b3f7a58 100755
--- a/tools/ko-release-gen
+++ b/tools/ko-release-gen
@@ -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
+