summaryrefslogtreecommitdiffstats
path: root/tools/ko-release-gen
diff options
context:
space:
mode:
authorKarel Zak2012-01-19 13:15:03 +0100
committerKarel Zak2012-01-19 13:15:03 +0100
commitabbc7b4a14287746253d47218576410879839597 (patch)
tree9a1237c9f428e516889fd58d95e01fadbd8d41dc /tools/ko-release-gen
parentbuild-sys: add ko-release-push script (diff)
downloadkernel-qcow2-util-linux-abbc7b4a14287746253d47218576410879839597.tar.gz
kernel-qcow2-util-linux-abbc7b4a14287746253d47218576410879839597.tar.xz
kernel-qcow2-util-linux-abbc7b4a14287746253d47218576410879839597.zip
build-sys: improve ko-release-* scripts
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tools/ko-release-gen')
-rwxr-xr-xtools/ko-release-gen8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/ko-release-gen b/tools/ko-release-gen
index 46d140f95..b95af2ea9 100755
--- a/tools/ko-release-gen
+++ b/tools/ko-release-gen
@@ -49,6 +49,14 @@ function add_file {
local sig=$(echo "$name" | sed 's/\.tar\.xz/.tar.sign/')
xz -d -c $subdir/$name | $GPG_CMD --output $subdir/$sig
;;
+ *.tar.gz)
+ local sig=$(echo "$name" | sed 's/\.tar\.gz/.tar.sign/')
+ gzip -d -c $subdir/$name | $GPG_CMD --output $subdir/$sig
+ ;;
+ *.tar.bz2)
+ local sig=$(echo "$name" | sed 's/\.tar\.bz2/.tar.sign/')
+ bzip2 -d -c $subdir/$name | $GPG_CMD --output $subdir/$sig
+ ;;
*)
local sig="${name}.sign"
cat $subdir/$name | $GPG_CMD --output $subdir/$sig