8 repack.stub - script to repack upstream tarballs from uscan
12 put this in debian/repack.stub and add "debian sh debian/repack.stub" to
13 the end of the line in debian/watch. you will also need to add a version
14 mangle to debian/watch.
16 then create a debian/repack.local. this is a shell script that is
17 sourced under "set -e", so be careful to check returns codes.
25 rm is replaced by a function that does some magic ("rm -rv" by default), but also changes MANIFEST if $MANIFEST is 1
29 mv is replaced by a function that just does mv (by default), but also changes MANIFEST if $MANIFEST is 1
31 =item requires_version
33 requires_version is there for future usage for requiring certain versions of the script
45 what to append to the upstream version
55 defaults to 0, set to 1 to turn on.
57 this will manipulate MANIFEST files in CPAN tarballs.
61 this is the directory where the upstream source is.
67 if [ -z "$REPACK_SH" ]; then
68 if [ -f ../../scripts/repack.sh ]; then
69 REPACK_SH=../../scripts/repack.sh
71 if [ -z "$REPACK_SH" ] && which repack.sh > /dev/null; then
72 REPACK_SH=$(which repack.sh)
76 if [ ! -f "$REPACK_SH" ]; then
77 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"
78 echo "You can get it from http://anonscm.debian.org/gitweb/?p=pkg-perl/scripts.git;a=blob_plain;f=repack.sh;hb=HEAD"
82 exec "$REPACK_SH" "$@"