[disruptor] 01/05: Use the package name returned by dpkg-parsechangelog in debian/orig-tar.sh

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Fri Jan 22 16:28:50 UTC 2016


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

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

commit cca115d4ce0b5212ede817d3fd29577df5ae73ef
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Fri Jan 22 15:36:04 2016 +0100

    Use the package name returned by dpkg-parsechangelog in debian/orig-tar.sh
---
 debian/orig-tar.sh | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
index 13cedbe..803c581 100755
--- a/debian/orig-tar.sh
+++ b/debian/orig-tar.sh
@@ -1,11 +1,13 @@
 #!/bin/sh
 set -e
 
+PACKAGE=$(dpkg-parsechangelog -S Source)
 VERSION=$2
-DIR=disruptor-${VERSION}
-TAR=../disruptor_${VERSION}.orig.tar.xz
+DIR=${PACKAGE}-${VERSION}
+TAR=../${PACKAGE}_${VERSION}.orig.tar.xz
 
-tar -xf $3
+mkdir $DIR
+tar -xf $3 --strip-components=1 -C $DIR
 rm $3
 XZ_OPT=--best tar -c -v -J -f $TAR \
     --exclude '*.jar' \

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



More information about the pkg-java-commits mailing list