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.$$
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
19 sed <$part >>$tmp -e '/^Build-Depends:/{
24 echo "$0: Arrgh ... expect $part to exist ..."