[jenkins-commons-jelly] 02/04: Use XZ compression for the upstream tarball

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Fri Sep 5 11:26:31 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-commons-jelly.

commit cab20e37177e4b9191b0925654ddbe3a689cf5c5
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Fri Sep 5 12:52:54 2014 +0200

    Use XZ compression for the upstream tarball
---
 debian/changelog     |  1 +
 debian/repack-tar.sh | 14 +++++++++-----
 debian/rules         |  2 +-
 3 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 3b7470d..ff7ccaf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ jenkins-commons-jelly (1.1-jenkins-20110627-4) UNRELEASED; urgency=medium
     - Standards-Version updated to 3.9.5 (no changes)
     - Use canonical URLs for the Vcs-* fields
   * Switch to debhelper level 9
+  * Use XZ compression for the upstream tarball
 
  -- Emmanuel Bourg <ebourg at apache.org>  Fri, 05 Sep 2014 12:17:41 +0200
 
diff --git a/debian/repack-tar.sh b/debian/repack-tar.sh
index 8e362d0..7631988 100755
--- a/debian/repack-tar.sh
+++ b/debian/repack-tar.sh
@@ -1,12 +1,13 @@
 #/bin/sh -e
 
 VERSION=$2
-TAR=../jenkins-commons-jelly_$VERSION.orig.tar.gz
+TAR=../jenkins-commons-jelly_$VERSION.orig.tar.xz
 DIR=jenkins-commons-jelly-$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
 
 # Move core of jelly into subdirectory
 # This is required to allow all jelly
@@ -19,7 +20,10 @@ do
 done
 
 # Repack excluding stuff we don't need
-GZIP=--best tar -c -z -f $TAR --exclude '*.jar' --exclude '*.class' \
-     --exclude 'CVS' --exclude '.svn' $DIR
+XZ_OPT=--best tar -c -J -v -f $TAR \
+    --exclude '*.jar' \
+    --exclude '*.class' \
+    --exclude 'CVS' \
+    --exclude '.svn' \
+    $DIR
 rm -rf $DIR
-
diff --git a/debian/rules b/debian/rules
index 56fdaf2..84533b1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,4 +9,4 @@ DEB_MAVEN_DOC_TARGET := javadoc:jar javadoc:aggregate
 DEB_MAVEN_BUILD_TARGET := install
 
 get-orig-source:
-	uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
+	uscan --download-current-version --force-download --rename

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jenkins-commons-jelly.git



More information about the pkg-java-commits mailing list