[SCM] sonic-visualiser/master: Fix repacking scripts

mira-guest at users.alioth.debian.org mira-guest at users.alioth.debian.org
Thu Aug 8 05:17:28 UTC 2013


The following commit has been merged in the master branch:
commit fae97b579816c9a6b8ababb74b3ed90160f6be9a
Author: Jaromír Mikeš <mira.mikes at seznam.cz>
Date:   Thu Aug 8 07:18:18 2013 +0200

    Fix repacking scripts

diff --git a/debian/repack.sh b/debian/repack.sh
index ae71ef5..0ccbd10 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
@@ -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
diff --git a/debian/repack.stub b/debian/repack.stub
index ac56520..4d68667 100644
--- a/debian/repack.stub
+++ b/debian/repack.stub
@@ -14,7 +14,7 @@ the end of the line in debian/watch. you will also need to add a version
 mangle to debian/watch.
 
 then create a debian/repack.local. this is a shell script that is
-sources under "set -e", so be careful to check returns codes.
+sourced under "set -e", so be careful to check returns codes.
 
 =head1 FUNCTIONS
 
@@ -62,6 +62,12 @@ this is the directory where the upstream source is.
 
 =back
 
+=head1 COPYRIGHT AND LICENSE
+
+Copyright 2009, Ryan Niebur <ryan at debian.org>
+
+License: Artistic or GPL-1+
+
 =cut
 
 if [ -z "$REPACK_SH" ]; then
@@ -75,7 +81,7 @@ fi
 
 if [ ! -f "$REPACK_SH" ]; then
     echo "Couldn't find a repack.sh. please put it in your PATH, put it at ../../scripts/repack.sh, or put it somewhere else and set the REPACK_SH variable"
-    echo "You can get it from http://svn.debian.org/viewsvn/pkg-perl/scripts/repack.sh"
+    echo "You can get it from http://anonscm.debian.org/gitweb/?p=pkg-perl/scripts.git;a=blob_plain;f=repack.sh;hb=HEAD"
     exit 1
 fi
 

-- 
sonic-visualiser packaging



More information about the pkg-multimedia-commits mailing list