correct orig-tar.sh for xz compression
tony mancill
7 years ago
1 | 1 | |
2 | 2 | VERSION=$2 |
3 | 3 | DIR=findbugs-$VERSION |
4 | TAR=findbugs_$VERSION.orig.tar.bz2 | |
4 | TAR=findbugs_$VERSION.orig.tar.xz | |
5 | 5 | |
6 | 6 | # clean up the upstream tarball |
7 | unzip -x $3 | |
7 | #unzip -x $3 | |
8 | tar xzvf $3 | |
8 | 9 | cd $DIR |
9 | 10 | #Remove shipped jar + doc without sources |
10 | 11 | rm -rf lib/*.jar lib/*.zip lib/*.txt |
11 | 12 | rm -rf src/doc/pressRelease.pdf doc/pressRelease.pdf build-lib/ |
12 | 13 | cd .. |
13 | tar jcvf ../$TAR $DIR | |
14 | tar Jcvf ../$TAR $DIR | |
14 | 15 | rm -rf $DIR $3 |
15 | 16 | |
16 | 17 | # move to directory 'tarballs' |