Use XZ compression for the upstream tarball
Emmanuel Bourg
6 years ago
7 | 7 |
* debian/copyright: Updated to the Copyright Format 1.0
|
8 | 8 |
* Moved the package to Git
|
9 | 9 |
* Switch to debhelper level 10
|
|
10 |
* Use XZ compression for the upstream tarball
|
10 | 11 |
|
11 | 12 |
-- Emmanuel Bourg <ebourg@apache.org> Thu, 24 Oct 2013 17:36:31 +0200
|
12 | 13 |
|
0 | 0 |
#!/bin/sh -e
|
1 | 1 |
|
2 | 2 |
VERSION=$2
|
3 | |
TAR=../maven-verifier_$VERSION.orig.tar.gz
|
|
3 |
TAR=../maven-verifier_$VERSION.orig.tar.xz
|
4 | 4 |
DIR=maven-verifier-$VERSION
|
5 | 5 |
TAG=$(echo "maven-verifier-$VERSION" | sed -re's/~(alpha|beta)/-\1-/')
|
6 | 6 |
|
7 | 7 |
svn export http://svn.apache.org/repos/asf/maven/shared/tags/${TAG} $DIR
|
8 | |
GZIP=--best tar -c -z -f $TAR --exclude '*.jar' --exclude '*.class' $DIR
|
|
8 |
XZ_OPT=--best tar -c -J -f $TAR --exclude '*.jar' --exclude '*.class' $DIR
|
9 | 9 |
rm -rf $DIR ../$TAG
|
10 | |
|
11 | |
# move to directory 'tarballs'
|
12 | |
if [ -r .svn/deb-layout ]; then
|
13 | |
. .svn/deb-layout
|
14 | |
mv $TAR $origDir && echo "moved $TAR to $origDir"
|
15 | |
fi
|