pmrep: fix archive end time reporting
[pcp.git] / debian / pre-build
blob4107508b74506a782c64450103cd38f03d1689b6
1 #!/bin/sh
3 # Pre-build helper script
5 # 1. Generate control from control.master and the non-optional
6 # control.foo fragments so that control can be included in the tarball
7 # (for vanilla Debian builds that do not use ../Makepkgs).
10 tmp=/var/tmp/pre-build.$$
11 rm -f $tmp
12 status=1 # failure is the default
13 trap "rm -f $tmp; exit \$status" 0 1 2 3 15
15 for part in control.master control.webapi
17 if [ -f $part ]
18 then
19 sed <$part >>$tmp -e '/^Build-Depends:/{
20 s/?{//g
21 s/}/,/g
23 else
24 echo "$0: Arrgh ... expect $part to exist ..."
25 ls -l control*
26 exit
28 done
30 rm -f control
31 cp $tmp control
32 status=0
34 exit