From: aph Date: Sun, 12 Sep 1999 01:55:19 +0000 (+0000) Subject: fix a bug in how we deal with debian/control X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=developers-reference.git;a=commitdiff_plain;h=70c7e6ee4cc89da04c05ef4aad5771ac26c12535 fix a bug in how we deal with debian/control git-svn-id: svn://anonscm.debian.org/ddp/manuals/trunk/developers-reference@841 313b444b-1b9f-4f58-a734-7bb04f332e8d --- diff --git a/debian/rules b/debian/rules index a24215d..5dc8af3 100755 --- a/debian/rules +++ b/debian/rules @@ -85,12 +85,7 @@ binary-indep: build # make sure control files are good sh -n debian/postinst sh -n debian/prerm -# install the control files - $(install_script) debian/postinst debian/prerm $(prefix)/DEBIAN/ - # be tricky about putting the TOC sections into the description of the package - cp debian/control debian/control.out - perl -ne '/^\d+\.\s/ && print " $$_";' < developers-reference.txt >> debian/control.out - $(install_file) debian/control.out $(prefix)/DEBIAN/control + $(install_script) debian/postinst debian/prerm $(prefix)/DEBIAN/ # compress docdir (policy) find $(docdir) -type f \( -size +4k -or -iname "change*" \) \ @@ -98,6 +93,10 @@ binary-indep: build ! -name "copyright" | xargs $(compress) dpkg-gencontrol -isp +# be tricky about putting the TOC sections into the description of the package + perl -ne '/^\d+\.\s/ && print " $$_";' < developers-reference.txt \ + >> $(prefix)/DEBIAN/control + dpkg --build $(prefix) .. # some extra-package files