r40115 - /scripts/repack.stub

ryan52-guest at users.alioth.debian.org ryan52-guest at users.alioth.debian.org
Sat Jul 18 16:37:57 UTC 2009


Author: ryan52-guest
Date: Sat Jul 18 16:37:52 2009
New Revision: 40115

URL: http://svn.debian.org/wsvn/?sc=1&rev=40115
Log:
add repack.stub

Added:
    scripts/repack.stub

Added: scripts/repack.stub
URL: http://svn.debian.org/wsvn/scripts/repack.stub?rev=40115&op=file
==============================================================================
--- scripts/repack.stub (added)
+++ scripts/repack.stub Sat Jul 18 16:37:52 2009
@@ -1,0 +1,36 @@
+#!/bin/sh
+
+# put this in debian/repack.sh and add "debian sh debian/repack.sh" to
+# the end of the line in 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.
+
+# special functions:
+# rm is replaced by a function that does some magic ("rm -rv" by
+#    default)
+# requires_version is there for future usage for requiring certain
+#    versions of the script
+
+# special variables:
+# SUFFIX (defaults to +dfsg)
+# RM_OPTS (defaults to -rv)
+# MANIFEST (defaults to 0, set to 1 to turn on. this will manipulate
+#           MANIFEST files in CPAN tarballs.)
+
+if [ -z "$REPACK_SH" ]; then
+    if [ -f ../../scripts/repack.sh ]; then
+        REPACK_SH=../../scripts/repack.sh
+    fi
+    if [ -z "$REPACK_SH" ] && which repack.sh > /dev/null; then
+        REPACK_SH=$(which repack.sh)
+    fi
+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"
+    exit 1
+fi
+
+"$REPACK_SH" "$@"




More information about the Pkg-perl-cvs-commits mailing list