Is there any way doc-base can provide some kind of macro expansion, so I don't have to edit:
/usr/doc/libgtk1.1.13-doc/gtk-faq.html/ ...
every time I have a new package, instead, doing something like
VERSION=1.1.13
/usr/doc/libgtk${VERSION}-doc/gtk-faq.html/
In glibc I do something (almost exactly) like:
In debian/libc-doc.doc-base.in:
<< Format: info Index: @infodir@/libc.info.gz Files: @infodir@/libc.*
Format: HTML Index: @docdir@/@[EMAIL PROTECTED]/html/libc_toc.html Files: @docdir@/@[EMAIL PROTECTED]/html/*.html
Then in debian/rules:
<< debian/libc-doc.doc-base: debian/libc-doc.doc-base.in sed -e '[EMAIL PROTECTED]@%$(glibc)%g' -e '[EMAIL PROTECTED]@%$(infodir)%g' \ -e '[EMAIL PROTECTED]@%$(docdir)%g' < debian/libc-doc.doc-base.in > \ debian/libc-doc.doc-base # Paranoia touch $@
Then I have the target that generates the glibc-doc .deb depend on the debian/libc-doc.doc-base rule.
And make of course takes care of making sure debian/libc-doc.doc-base is up to date with regard to debian/libc-doc.doc-base.in.
--
Joel Klecker (aka Espy) <URL:http://web.espy.org/>
<URL:mailto:[EMAIL PROTECTED]> <URL:mailto:[EMAIL PROTECTED]>
Debian GNU/Linux PowerPC -- <URL:http://www.debian.org/ports/powerpc/>