[SCM] mixxx/master: Update debian/repack.sh script to latest version.

mati75-guest at users.alioth.debian.org mati75-guest at users.alioth.debian.org
Sun Jan 24 16:58:05 UTC 2016


The following commit has been merged in the master branch:
commit d39ba7059d65f3110eb124c8101eada64994dc12
Author: Mateusz Łukasik <mati75 at linuxmint.pl>
Date:   Sun Jan 24 17:58:04 2016 +0100

    Update debian/repack.sh script to latest version.

diff --git a/debian/changelog b/debian/changelog
index 212d315..ea85072 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+mixxx (1.11.0~dfsg-6) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Update debian/repack.sh script to latest version.
+
+ -- Mateusz Łukasik <mati75 at linuxmint.pl>  Sun, 24 Jan 2016 17:57:23 +0100
+
 mixxx (1.11.0~dfsg-5) unstable; urgency=medium
 
   * Team upload.
diff --git a/debian/repack.sh b/debian/repack.sh
index ae71ef5..b41fe9b 100755
--- a/debian/repack.sh
+++ b/debian/repack.sh
@@ -2,6 +2,10 @@
 
 # see the repack.stub for how to use
 
+# Copyright 2009, Ryan Niebur <ryan at debian.org>
+# Copyright 2009-2011, gregor herrmann <gregoa at debian.org>
+# License: Artistic or GPL-1+
+
 # TODO: provide example watch files and repack.locals
 # TODO: test suite. problems fixed that need to be tested:
 # * globbing
@@ -35,7 +39,7 @@ if [ ! -f "$3" ]; then
 fi
 VER="$2"
 FILE="$3"
-PKG=`dpkg-parsechangelog|grep ^Source:|sed 's/^Source: //'`
+PKG=`dpkg-parsechangelog --show-field Source`
 
 SUFFIX="+dfsg"
 
@@ -111,7 +115,7 @@ mv(){
 }
 
 # bump with incompatible changes
-REPACK_VERSION=3
+REPACK_VERSION=4
 
 requires_version(){
     if [ $REPACK_VERSION -lt $1 ]; then
@@ -138,14 +142,18 @@ real_mv "$UP_BASE" "$DIR/$REPACK_DIR"
 # .gz or .bz2?
 FILETYPE=$(file --brief --mime-type --dereference "$FILE")
 case "$FILETYPE" in
-    application/x-gzip|application/zip)
+    application/x-gzip|application/gzip|application/zip)
         C_PROGRAM="gzip"
         C_SUFFIX="gz"
         ;;
-    application/x-bzip2)
+    application/x-bzip2|application/bzip2)
         C_PROGRAM="bzip2"
         C_SUFFIX="bz2"
         ;;
+    application/x-xz|application/xz)
+        C_PROGRAM="xz"
+        C_SUFFIX="xz"
+        ;;
     *)
         echo "E: Unknown filetye $FILETYPE"
         exit 1
@@ -159,3 +167,53 @@ $C_PROGRAM -9 < "$DIR/repacked.tar" > "$DIR/repacked.tar.$C_SUFFIX"
 real_mv "$DIR/repacked.tar.$C_SUFFIX" "$DFSG_TAR.$C_SUFFIX"
 
 echo "*** $DFSG_TAR.$C_SUFFIX ready"
+
+exit 0
+POD=<<EOF
+=head1 NAME
+
+dpt-repack -- repackaging helper
+
+=head1 SYNOPSIS
+
+B<dpt repack> --upstream-version I<version> I<downloaded file>"
+
+=head1 DESCRIPTION
+
+B<dpt repack> helps creating repackaged tarballs, suitable for feeding
+L<dpkg-source(1)>.
+
+Work is commenced in three stages:
+
+=over
+
+=item
+
+B<dpt repack> unpacks the provided upstream tarball.
+
+=item
+
+F<debian/repack.local> is sourced to remove unsuitable content.
+
+=item
+
+B<dpt repack> packs the sources again, under a suitable file name in the
+form C<package_ver.orig.tar.gz> (suffix depending on initial compression).
+
+=back
+
+B<dpt repack> invokes F<debian/repack.local> in an environment where B<rm> and
+B<mv> are replaced with functions that reflect the operations in the
+F<MANIFEST> file, if present.
+
+=head1 COPYRIGHT & LICENSE
+
+Copyright 2009, Ryan Niebur L<ryan at debian.org>
+
+Copyright 2009-2011, gregor herrmann L<gregoa at debian.org>
+
+This program is free software and can be distributed under the same terms as
+Perl.
+
+=cut
+EOF

-- 
mixxx packaging



More information about the pkg-multimedia-commits mailing list