- debiandoc2latexps policy.sgml
- mv policy.ps ../
- gzip -9qvf ../policy.ps
- debiandoc2latexpdf policy.sgml
- mv policy.pdf ../
- gzip -9qfv ../policy.pdf
- GZIP=-9v tar zcf ../policy.html.tar.gz policy.html
- dpkg-distaddfile -fdebian/files policy.ps.gz byhand -
- dpkg-distaddfile -fdebian/files policy.pdf.gz byhand -
- dpkg-distaddfile -fdebian/files policy.html.tar.gz byhand -
- for i in $(BYHAND_FILES); do \
- $(install_file) $$i .. ; \
- dpkg-distaddfile -fdebian/files $$i byhand - ; \
- done
- touch stamp-policy
-
-stamp-packaging: build
- @test $$(id | sed -e 's/(.*$$//' -e 's/^uid=//') || \
- (echo need root priviledges; exit 1)
- $(checkdir)
- test -f stamp-build || $(MAKE) -f debian/rules build
- -rm -rf $(PTMPTOP)
- $(make_directory) $(PTMPTOP)/DEBIAN
- $(make_directory) $(PDOCDIR)
- $(make_directory) $(PLIBDIR)
- echo "debian-policy:Version=$(version)" > debian/substvars
- echo "packaging-manual:Version=$(version)" >> debian/substvars
-
- $(install_file) packaging.sgml $(PDOCDIR)/
- $(install_file) version.ent $(PDOCDIR)/
- $(install_file) debian/changelog $(PDOCDIR)/
- -gzip -fqr9 $(PDOCDIR)
- $(install_file) packaging.text.gz $(PDOCDIR)/
- $(install_file) debian/copyright $(PDOCDIR)/
- $(install_file) packaging-manual.desc $(PLIBDIR)/packaging-manual
- (tar cf - packaging.html) | (cd $(PDOCDIR); tar xf -)
- sed -e 's/#PACKAGE#/$(ppackage)/g' debian/postinst.in > debian/postinst
- sed -e 's/#PACKAGE#/$(ppackage)/g' debian/prerm.in > debian/prerm
- $(install_program) debian/{postinst,prerm} debian/tmp-packaging/DEBIAN/
- dpkg-gencontrol -ppackaging-manual -Pdebian/tmp-packaging -isp
- chown -R root.root debian/tmp-packaging
- chmod -R go=rX debian/tmp-packaging
- dpkg --build debian/tmp-packaging ..
- debiandoc2latexps packaging.sgml
- debiandoc2latexpdf packaging.sgml
- mv packaging.ps ../
- mv packaging.pdf ../
- gzip -9vf ../packaging.ps
- gzip -9vf ../packaging.pdf
- GZIP=-9v tar zcf ../packaging.html.tar.gz packaging.html
- dpkg-distaddfile -fdebian/files packaging.ps.gz byhand -
- dpkg-distaddfile -fdebian/files packaging.pdf.gz byhand -
- dpkg-distaddfile -fdebian/files packaging.html.tar.gz byhand -
- for i in $(PBYHAND_FILES); do \
- $(install_file) $$i .. ; \
- dpkg-distaddfile -fdebian/files $$i byhand - ; \
- done
- touch stamp-
-
-
-define checkdir
- test -f debian/rules -a -f policy.sgml
-endef