[Pkg-haskell-commits] [tools] 04/07: Have debian2dsc create debian.xz files

Joachim Breitner nomeata at moszumanska.debian.org
Sun Dec 21 20:58:16 UTC 2014


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

nomeata pushed a commit to branch master
in repository tools.

commit 949db28afd98aa6f9c63d2a6da5a4099ad8929b6
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Sun Dec 21 21:56:05 2014 +0100

    Have debian2dsc create debian.xz files
---
 debian2dsc.sh | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/debian2dsc.sh b/debian2dsc.sh
index 2b4e645..6b23eda 100755
--- a/debian2dsc.sh
+++ b/debian2dsc.sh
@@ -20,7 +20,7 @@ Usage: $0 [dir ...]
 Expects directories containing the contents of the debian/ directory of a
 Debian source package (i.e. control, changelog, watch, ...). Uses the watch
 file to retrieve the upstream tarball (unless it already exists in the local
-directory), creates a debian.tar.gz tarball from the given directory (ignoring
+directory), creates a debian.tar.xz tarball from the given directory (ignoring
 the ususal suspects like _darcs and *~) and creates a corresponding .dsc file;
 all without unpacking the upstream tarball.
 __END__
@@ -36,8 +36,8 @@ do
       exit 1
     fi
 
-    VERSION=`dpkg-parsechangelog -l$DIR/changelog -c1 | grep-dctrl -n -s Version .`
-    PACKAGE=`dpkg-parsechangelog -l$DIR/changelog -c1 | grep-dctrl -n -s Source .`
+    VERSION=`dpkg-parsechangelog -l$DIR/changelog -c1 -SVersion`
+    PACKAGE=`dpkg-parsechangelog -l$DIR/changelog -c1 -SSource`
     UPSTREAM=`echo $VERSION | cut -d- -f1` # this could be improved
     if echo $UPSTREAM | fgrep -q : ; then
     	UPSTREAM=`echo $UPSTREAM | cut -d: -f2-`
@@ -88,10 +88,10 @@ do
 	fi
     fi
     
-    DEBIAN_TARBALL=${PACKAGE}_${VERSION}.debian.tar.gz
+    DEBIAN_TARBALL=${PACKAGE}_${VERSION}.debian.tar.xz
     # -I line taken from "man dpkg-source"
     tar --create \
-    	--gzip \
+	--xz \
 	--transform s,^.,debian, \
 	--force-local \
 	--file $DEBIAN_TARBALL \

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



More information about the Pkg-haskell-commits mailing list