make mk-tarball create a .bz2 tarball as well
authorHannes Gredler <hannes@gredler.at>
Tue, 29 Apr 2008 08:36:06 +0000 (10:36 +0200)
committerHannes Gredler <hannes@gredler.at>
Tue, 29 Apr 2008 08:36:06 +0000 (10:36 +0200)
scripts/mk-tarball.sh

index 75c6903..6f04717 100755 (executable)
 
 # first determine the tarball name
 NAME=`grep -E "^VERS" ../Makefile | sed 's/^VERS..../olsrd-/;s/ *$//'`
-echo "### creating $NAME.tgz in /tmp"
 mkdir /tmp/$NAME
 # sync the stuff to a working directory
 rsync -a ../ /tmp/$NAME/ --exclude=.hg* --delete
 cd /tmp/
+echo "### creating /tmp/$NAME.tgz"
 tar -czf /tmp/$NAME.tgz $NAME
+echo "### creating /tmp/$NAME.bz2"
+tar -cjf /tmp/$NAME.bz2 $NAME
 #clean up
 rm -rf /tmp/$NAME