Skip to content
This repository
Browse code

Compress bz2 doc tarballs with bzip2 instead of gzip

Fixes #99.
  • Loading branch information...
commit 5dbac70a670bff73195f5f0f1fefb7f695443095 1 parent 40c2e53
Petri Lehtinen authored January 06, 2013

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  release.sh
4  release.sh
@@ -61,7 +61,9 @@ mv doc/_build/html jansson-$v-doc
61 61
 
62 62
 # Make and sign documentation tarballs
63 63
 for s in gz bz2; do
64  
-    tar czf jansson-$v-doc.tar.$s jansson-$v-doc
  64
+    [ $s = gz ] && compress=gzip
  65
+    [ $s = bz2 ] && compress=bzip2
  66
+    tar cf - jansson-$v-doc | $compress -9 -c > jansson-$v-doc.tar.$s
65 67
     gpg --detach-sign --armor jansson-$v-doc.tar.$s
66 68
 done
67 69
 

0 notes on commit 5dbac70

Please sign in to comment.
Something went wrong with that request. Please try again.