[jenkins] 02/03: Use XZ compression for the upstream tarball
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Tue Sep 2 11:00:40 UTC 2014
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository jenkins.
commit 0777fba74124c80f1aaf943d9e4ae859835b4b68
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Tue Sep 2 12:13:28 2014 +0200
Use XZ compression for the upstream tarball
---
debian/changelog | 1 +
debian/orig-tar.sh | 30 ++++++++++++++++++++----------
2 files changed, 21 insertions(+), 10 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 4f8bf8a..0daa060 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,7 @@ jenkins (1.509.2+dfsg-3) UNRELEASED; urgency=medium
* debian/control:
- Standards-Version updated to 3.9.5 (no changes)
* debian/copyright: Updated the Format URI to 1.0
+ * Use XZ compression for the upstream tarball
-- Emmanuel Bourg <ebourg at apache.org> Tue, 02 Sep 2014 09:17:51 +0200
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
index 6a7f4e7..8bdbd88 100755
--- a/debian/orig-tar.sh
+++ b/debian/orig-tar.sh
@@ -1,21 +1,31 @@
#/bin/sh -e
VERSION=$2
-TAR=../jenkins_$VERSION.orig.tar.gz
+TAR=../jenkins_$VERSION.orig.tar.xz
DIR=jenkins-$VERSION
mkdir -p $DIR
# Unpack ready fo re-packing
-tar -xzf $TAR -C $DIR --strip-components=1
+tar -xzf $3 -C $DIR --strip-components=1
+rm $3
# Repack excluding stuff we don't need
-GZIP=--best tar -czf $TAR --exclude '*.jar' --exclude '*.class' \
- --exclude 'CVS' --exclude '.svn' --exclude "jenkins-$VERSION/debian" \
- --exclude "jenkins-$VERSION/test" --exclude "jenkins-$VERSION/osx" \
- --exclude "jenkins-$VERSION/ebuild" --exclude "jenkins-$VERSION/opensuse" \
- --exclude "jenkins-$VERSION/rpm" --exclude "jenkins-$VERSION/ips" \
- --exclude "jenkins-$VERSION/msi" --exclude 'hudson-logo.vsd' \
- --exclude 'TangoProject-License.url' --exclude 'dummy.keystore' $DIR
+XZ_OPT=--best tar -cJf $TAR \
+ --exclude '*.jar' \
+ --exclude '*.class' \
+ --exclude 'CVS' \
+ --exclude '.svn' \
+ --exclude "jenkins-$VERSION/debian" \
+ --exclude "jenkins-$VERSION/test" \
+ --exclude "jenkins-$VERSION/osx" \
+ --exclude "jenkins-$VERSION/ebuild" \
+ --exclude "jenkins-$VERSION/opensuse" \
+ --exclude "jenkins-$VERSION/rpm" \
+ --exclude "jenkins-$VERSION/ips" \
+ --exclude "jenkins-$VERSION/msi" \
+ --exclude 'hudson-logo.vsd' \
+ --exclude 'TangoProject-License.url' \
+ --exclude 'dummy.keystore' \
+ $DIR
rm -rf $DIR
-
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jenkins.git
More information about the pkg-java-commits
mailing list