From 5dbac70a670bff73195f5f0f1fefb7f695443095 Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Sun, 6 Jan 2013 14:16:38 +0200 Subject: [PATCH] Compress bz2 doc tarballs with bzip2 instead of gzip Fixes #99. --- release.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/release.sh b/release.sh index b5c8c09..c2551f8 100755 --- a/release.sh +++ b/release.sh @@ -61,7 +61,9 @@ mv doc/_build/html jansson-$v-doc # Make and sign documentation tarballs for s in gz bz2; do - tar czf jansson-$v-doc.tar.$s jansson-$v-doc + [ $s = gz ] && compress=gzip + [ $s = bz2 ] && compress=bzip2 + tar cf - jansson-$v-doc | $compress -9 -c > jansson-$v-doc.tar.$s gpg --detach-sign --armor jansson-$v-doc.tar.$s done