Commit 24d5f065 authored by Emmanuel Bourg's avatar Emmanuel Bourg

Use XZ compression for the upstream tarball

parent 3a0eeba7
......@@ -3,6 +3,7 @@ maven-clean-plugin (2.5-2) UNRELEASED; urgency=medium
* Moved the package to Git
* Standards-Version updated to 3.9.8
* Switch to debhelper level 10
* Use XZ compression for the upstream tarball
-- Emmanuel Bourg <ebourg@apache.org> Tue, 20 Jun 2017 13:09:10 +0200
......
#!/bin/sh -e
VERSION=$2
TAR=../maven-clean-plugin_$VERSION.orig.tar.gz
TAR=../maven-clean-plugin_$VERSION.orig.tar.xz
DIR=maven-clean-plugin-$VERSION
TAG=$(echo "maven-clean-plugin-$VERSION" | sed -re's/~(alpha|beta)/-\1-/')
svn export http://svn.apache.org/repos/asf/maven/plugins/tags/${TAG}/ $DIR
GZIP=--best tar -c -z -f $TAR --exclude '*.jar' --exclude '*.class' $DIR
XZ_OPT=--best tar -c -J -f $TAR --exclude '*.jar' --exclude '*.class' $DIR
rm -rf $DIR ../$TAG
# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
. .svn/deb-layout
mv $TAR $origDir && echo "moved $TAR to $origDir"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment