[SCM] vamp-plugin-sdk/master: Repack scripts updated.
mira-guest at users.alioth.debian.org
mira-guest at users.alioth.debian.org
Thu Feb 27 12:40:11 UTC 2014
The following commit has been merged in the master branch:
commit ef1637acad1038764b0ced81921dc63c193595b5
Author: Jaromír Mikeš <mira.mikes at seznam.cz>
Date: Thu Feb 27 13:40:01 2014 +0100
Repack scripts updated.
diff --git a/debian/repack.local b/debian/repack.local
index a0dfcdc..169dc4d 100644
--- a/debian/repack.local
+++ b/debian/repack.local
@@ -1,2 +1,4 @@
SUFFIX=~repack0
rm .hgtags
+rm .hgignore
+rm .hg_archival.txt
diff --git a/debian/repack.sh b/debian/repack.sh
old mode 100755
new mode 100644
index ae71ef5..c29e8ba
--- 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
@@ -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
diff --git a/debian/repack.stub b/debian/repack.stub
index ac56520..7e36f5f 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,10 +62,19 @@ this is the directory where the upstream source is.
=back
+=head1 COPYRIGHT AND LICENSE
+
+Copyright 2009, Ryan Niebur <ryan at debian.org>
+
+This program is free software; you can redistribute it and/or modify it
+under the same terms as Perl itself.
+
=cut
if [ -z "$REPACK_SH" ]; then
- if [ -f ../../scripts/repack.sh ]; then
+ if [ -x /usr/share/pkg-perl-tools/repack.sh ]; then
+ REPACK_SH='/usr/share/pkg-perl-tools/repack.sh'
+ elif [ -f ../../scripts/repack.sh ]; then
REPACK_SH=../../scripts/repack.sh
fi
if [ -z "$REPACK_SH" ] && which repack.sh > /dev/null; then
@@ -75,7 +84,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/packages/pkg-perl-tools.git;a=blob_plain;f=scripts/repack.sh;hb=HEAD"
exit 1
fi
--
vamp-plugin-sdk packaging
More information about the pkg-multimedia-commits
mailing list