From 592ce7d8660a0aab5870916d6916894266632488 Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 17 Aug 1999 04:49:27 +0000 Subject: r77: Initial Import --- dh_gencontrol | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dh_gencontrol') 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" -- cgit v1.2.3