~ubuntu-branches/ubuntu/saucy/python-pbkdf2/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/repack.stub

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2013-01-12 21:34:30 UTC
  • Revision ID: package-import@ubuntu.com-20130112213430-dfwqwnrikilttfi0
Tags: 1.3+20110613.git2a0fb15~ds0-1
Initial release. (Closes: #698015)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
: <<=cut
 
4
=pod
 
5
 
 
6
=head1 NAME
 
7
 
 
8
repack.stub - script to repack upstream tarballs from uscan
 
9
 
 
10
=head1 INSTRUCTIONS
 
11
 
 
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.
 
15
 
 
16
then create a debian/repack.local. this is a shell script that is
 
17
sources under "set -e", so be careful to check returns codes.
 
18
 
 
19
=head1 FUNCTIONS
 
20
 
 
21
=over 4
 
22
 
 
23
=item rm
 
24
 
 
25
rm is replaced by a function that does some magic ("rm -rv" by default), but also changes MANIFEST if $MANIFEST is 1
 
26
 
 
27
=item mv
 
28
 
 
29
mv is replaced by a function that just does mv (by default), but also changes MANIFEST if $MANIFEST is 1
 
30
 
 
31
=item requires_version
 
32
 
 
33
requires_version is there for future usage for requiring certain versions of the script
 
34
 
 
35
=back
 
36
 
 
37
=head1 VARIABLES
 
38
 
 
39
=over 4
 
40
 
 
41
=item SUFFIX
 
42
 
 
43
defaults to +dfsg
 
44
 
 
45
what to append to the upstream version
 
46
 
 
47
=item RM_OPTS
 
48
 
 
49
defaults to -vrf
 
50
 
 
51
options to pass to rm
 
52
 
 
53
=item MANIFEST
 
54
 
 
55
defaults to 0, set to 1 to turn on.
 
56
 
 
57
this will manipulate MANIFEST files in CPAN tarballs.
 
58
 
 
59
=item UP_BASE
 
60
 
 
61
this is the directory where the upstream source is.
 
62
 
 
63
=back
 
64
 
 
65
=cut
 
66
 
 
67
if [ -z "$REPACK_SH" ]; then
 
68
    if [ -f ../../scripts/repack.sh ]; then
 
69
        REPACK_SH=../../scripts/repack.sh
 
70
    fi
 
71
    if [ -z "$REPACK_SH" ] && which repack.sh > /dev/null; then
 
72
        REPACK_SH=$(which repack.sh)
 
73
    fi
 
74
fi
 
75
 
 
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://svn.debian.org/viewsvn/pkg-perl/scripts/repack.sh"
 
79
    exit 1
 
80
fi
 
81
 
 
82
exec "$REPACK_SH" "$@"