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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This is the debhelper compatability version to use.
export DH_COMPAT=2
build:
clean:
dh_testdir
dh_testroot
dh_clean
install:
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/mh-book.
tar --exclude debian --exclude README --exclude README.ftp-site -cf - ./ | ( cd debian/mh-book/usr/share/doc/mh-book/html/ ; tar xf - )
# Add Debian comments about search engine being different than Jerry's
(cd debian/mh-book/usr/share/doc/mh-book/html/ ; patch srchhelp.htm < ../../../../../../cgi/srchhelp.html.patch)
# rename htm files to html, correct HREF tags within them,
# and adjust search-engine URL
(cd debian/mh-book/usr/share/doc/mh-book/html/; perl ../../../../../../scripts/htm2html *.htm */*.htm */*/*.htm)
(cd debian/mh-book/usr/share/doc/mh-book/html/; rm -f *.htm */*.htm */*/*.htm)
# Use my own frm-srch.html
install -m 0644 debian/cgi/frm-srch.html debian/mh-book/usr/share/doc/mh-book/html/
# move examples over to standard Debian location
(cd debian/mh-book/usr/share/doc/mh-book; mv html/download/split examples)
# ...and link them back in html tree
(cd debian/mh-book/usr/share/doc/mh-book/html/download/ ; ln -s ../../examples split)
# rfl script doesn't have Debian's path for perl
(cd debian/mh-book/usr/share/doc/mh-book/examples/mh/bin; perl -pi -e s:/usr/local/bin/perl:/usr/bin/perl: rfl)
# install cgi-bin script
install -m 755 debian/cgi/mh-book-index debian/mh-book/usr/lib/cgi-bin/
(cd debian/mh-book/usr/lib/cgi-bin/ ; ln mh-book-index mh-book-index-frames )
# install postscript conversion script
install -m 0644 debian/postscript/make-postscript-mh-book* debian/mh-book/usr/share/doc/mh-book/postscript/
install -m 0644 debian/postscript/README debian/mh-book/usr/share/doc/mh-book/postscript/README.debian
# install -m 0644 debian/doc-base debian/mh-book/usr/share/doc-base/mh-book
# Build architecture-independent files here.
binary-indep: install
dh_testversion 2
dh_testdir
dh_testroot
# dh_installdebconf
dh_installdocs
dh_installexamples
dh_installmenu
# dh_installemacsen
# dh_installpam
# dh_installinit
# dh_installcron
# dh_installmanpages
# dh_installinfo
# dh_undocumented
dh_installchangelogs
dh_link
dh_strip
# dh_compress
gzip -9 debian/mh-book/usr/share/doc/mh-book/changelog.Debian
dh_fixperms
chmod +x debian/mh-book/usr/share/doc/mh-book/examples/mh/bin/*
chmod +x debian/mh-book/usr/share/doc/mh-book/examples/xmh/bin/*
# You may want to make some executables suid here.
# dh_suidregister
# dh_makeshlibs
dh_installdeb
# dh_perl
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep
.PHONY: clean binary-indep binary install configure build
|