diff options
author | joey <joey> | 1999-08-17 04:49:27 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 04:49:27 +0000 |
commit | 592ce7d8660a0aab5870916d6916894266632488 (patch) | |
tree | abceee7ee12d3e2651ed48a3ad001e987efccae5 /dh_gencontrol | |
parent | 8e17695ae11d7baea80c69ff01b7558500cedfd9 (diff) | |
download | debhelper-592ce7d8660a0aab5870916d6916894266632488.tar.gz |
r77: Initial Import
Diffstat (limited to 'dh_gencontrol')
-rwxr-xr-x | dh_gencontrol | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dh_gencontrol b/dh_gencontrol index f30b4104..2babfec0 100755 --- a/dh_gencontrol +++ b/dh_gencontrol @@ -9,12 +9,17 @@ for PACKAGE in $DH_DOPACKAGES; do TMP=`tmpdir $PACKAGE` EXT=`pkgext $PACKAGE` + changelog=`pkgfile $PACKAGE changelog` + if [ ! "$changelog" ]; then + changelog=debian/changelog + fi + 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 "dpkg-gencontrol -l$changelog -p$PACKAGE -Tdebian/${EXT}substvars -P$TMP $DH_U_PARAMS" # This chmod is only necessary if the user sets the umask to something odd. doit "chmod 644 $TMP/DEBIAN/control" doit "chown root.root $TMP/DEBIAN/control" |