# 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*" \) \
! -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