diff options
author | joey <joey> | 1999-08-17 04:34:24 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 04:34:24 +0000 |
commit | 1e6dea44772a0c1f57e7cd50ff12e35a1cff0b96 (patch) | |
tree | 212e56dc8ea32cf27cd2a33ac901a92a701f063f /dh_gencontrol | |
parent | face7b5d7df5fb2b8f434bc7135f27b38329a5c5 (diff) | |
download | debhelper-1e6dea44772a0c1f57e7cd50ff12e35a1cff0b96.tar.gz |
r11: Initial revision
Diffstat (limited to 'dh_gencontrol')
-rwxr-xr-x | dh_gencontrol | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dh_gencontrol b/dh_gencontrol new file mode 100755 index 00000000..e2a4e701 --- /dev/null +++ b/dh_gencontrol @@ -0,0 +1,19 @@ +#!/bin/sh -e +# +# Generate and install the control file. Simple dpkg-gencontrol wrapper. + +PATH=debian:$PATH:/usr/lib/debhelper +. dh_lib + +for PACKAGE in $DH_DOPACKAGES; do + TMP=`tmpdir $PACKAGE` + EXT=`pkgext $PACKAGE` + + if [ ! -d $TMP/DEBIAN ]; then + doit "install -o root -g root -d $TMP/DEBIAN" + fi + + # Generate and install control file. + doit "dpkg-gencontrol -p$PACKAGE -Tdebian/${EXT}substvars -P$TMP $DH_U_PARAMS" + doit "chown root.root $TMP/DEBIAN/control" +done |