man bogofilter.1

Piotr KUCHARSKI chopin at sgh.waw.pl
Sun Feb 9 23:46:39 CET 2003


On Sun, Feb 09, 2003 at 04:59:00PM -0500, David Relson wrote:
> >"<filename>/etc/bogofilter.cf</filename>" et al could be
> >replaced by some $INSTALLPREFIX/etc/bogofilter.cf, so man
> >would point to existing .cf.example :)
> Very slick.  I didn't know that could be done.  

I don't know about XML, but I'd do it in Makefile.

.xml.1:
        xmlto man $< || { rm -f $@ ; exit 1 ; }

before xmlto I'd stick some
sed 's/@@DESTDIR@@/'$DESTDIR'/g' $< | xmlto man
if xmlto accepts stdin, otherwise some temp file

And of course change .xml where appropriate, adding @@DESTDIR@@
(or whatever token you wish)

p.

-- 
Beware of he who would deny you access to information, for in his
heart he dreams himself your master.   -- Commissioner Pravin Lal
http://nerdquiz.sgh.waw.pl/  -- polska wersja quizu dla nerdów ;)




More information about the Bogofilter mailing list