[libslf4j-java] 01/05: Keep slf4j-site/pom.xml in the upstream tarball

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Thu Jan 28 12:42:01 UTC 2016


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository libslf4j-java.

commit 87dd0112d73812d01bc2794147b6adac92eebe25
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Thu Jan 28 13:03:48 2016 +0100

    Keep slf4j-site/pom.xml in the upstream tarball
---
 debian/orig-tar.exclude |  3 ---
 debian/orig-tar.sh      | 27 +++++++++++----------------
 2 files changed, 11 insertions(+), 19 deletions(-)

diff --git a/debian/orig-tar.exclude b/debian/orig-tar.exclude
deleted file mode 100644
index 6c294b5..0000000
--- a/debian/orig-tar.exclude
+++ /dev/null
@@ -1,3 +0,0 @@
-*.jar
-*/site*
-*/slf4j-site*
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
index 4b36225..30d8378 100755
--- a/debian/orig-tar.sh
+++ b/debian/orig-tar.sh
@@ -1,20 +1,15 @@
 #!/bin/sh -e
 
-# $2 = version
-# $3 = file
-DIR=libslf4j-java-$2.orig
-TAR=../libslf4j-java_$2.orig.tar.xz
+PACKAGE=$(dpkg-parsechangelog -S Source)
+VERSION=$2
+DIR=${PACKAGE}-${VERSION}
+TAR=../${PACKAGE}_${VERSION}.orig.tar.xz
 
-# clean up the upstream tarball
-tar xzf $3
+mkdir $DIR
+tar -xf $3 --strip-components=1 -C $DIR
 rm $3
-mv slf4j-$2 $DIR
-XZ_OPT=--best tar cJf $TAR -X debian/orig-tar.exclude $DIR
-rm -rf $DIR
-
-# move to directory 'tarballs'
-if [ -r .svn/deb-layout ]; then
-  . .svn/deb-layout
-  mv $3 $origDir
-  echo "moved $3 to $origDir"
-fi
+XZ_OPT=--best tar -c -v -J -f $TAR \
+    --exclude '*.jar' \
+    --exclude 'site' \
+    $DIR
+rm -Rf $DIR

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



More information about the pkg-java-commits mailing list