/[debian]/libjpf-java/trunk/debian/repack.stub
ViewVC logotype

Contents of /libjpf-java/trunk/debian/repack.stub

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1863 - (show annotations)
Wed Sep 2 20:29:11 2009 UTC (11 years, 6 months ago) by gregoa
File size: 1705 byte(s)
add repack framework, needs repack.sh from
svn+ssh://svn.debian.org/svn/pkg-perl/scripts/repack.sh

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" "$@"

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26