1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
#!/usr/bin/make -f
export ROOT=$(CURDIR)
%:
dh $@
override_dh_clean:
dh_clean html/*.xml
dh_clean html/*.3G
dh_clean html/*.tmp
dh_clean html/index.html html/indexflat.html html/indexacc.html html/index.php html/indexflat.php
pkg_xml = opengl-4-html-doc
pkg_man = opengl-4-man-doc
override_dh_installdocs:
sed -e 's/src="html\//src="/g' -e 's/indexflat.php/indexflat.html/g' bottom.php > html/index.html
sed -e 's/indexflat.php/indexflat.html/g' -e "s/<?php include 'accord.js'; ?>/cat html\/accord.js/e" html/index.php > html/indexacc.html
sed -e 's/index.php/indexacc.html/g' html/indexflat.php > html/indexflat.html
dh_installdocs -p$(pkg_xml) html/*.xhtml
dh_installdocs -p$(pkg_xml) html/*.html
dh_installdocs -p$(pkg_xml) html/*.css
dh_installdocs -p$(pkg_xml) html/bullets-*.gif
override_dh_installman:
# bad-so-link-within-manual-page
sed -i -e 's/^.so man3G/.so man3/' html/*.3G
dh_installman -p$(pkg_man) html/*.3G
# force install of d/copyright:
dh_installdocs -p$(pkg_man)
# no make install rule:
override_dh_auto_install:
override_dh_compress:
dh_compress -X.xhtml
get-orig-source:
./debian/get-orig-source
|