Re: doc-base control file madness
At 08:06 -0800 1999-01-21, Ben Gertzfield wrote:
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@/@glibc@-doc/html/libc_toc.html
Files: @docdir@/@glibc@-doc/html/*.html
Then in debian/rules:
<<
debian/libc-doc.doc-base: debian/libc-doc.doc-base.in
sed -e 's%@glibc@%$(glibc)%g' -e 's%@infodir@%$(infodir)%g' \
-e 's%@docdir@%$(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:jk@espy.org> <URL:mailto:espy@debian.org>
Debian GNU/Linux PowerPC -- <URL:http://www.debian.org/ports/powerpc/>
Reply to: