cURL / Mailing Lists / curl-library / Single Mail

curl-library

formatting hugehelp.c

From: Tor Arntsen <tor_at_spacetec.no>
Date: Mon, 2 Feb 2004 17:17:10 +0100

Looking through my build log (http://curl.haxx.se/auto/showlog.cgi?year=2004&month=02&day=02&name=Tor%20Arntsen&date=Mon%20Feb%20%202%2013%3A26%3A40%20GMT%202004)
I noticed the following:

echo '#ifndef HAVE_LIBZ' >> hugehelp.c
/opt/freeware/bin/gnroff -man ../../curl/docs/curl.1 | /opt/freeware/bin/perl ../../curl/src/mkhelp.pl ../../curl/docs/MANUAL >> hugehelp.c
gtroff: fatal error: can't find macro file an
echo '#else' >> hugehelp.c
/opt/freeware/bin/gnroff -man ../../curl/docs/curl.1 | /opt/freeware/bin/perl ../../curl/src/mkhelp.pl -c ../../curl/docs/MANUAL >> hugehelp.c
gtroff: fatal error: can't find macro file an
echo '#endif /* HAVE_LIBZ */' >> hugehelp.c

The tmac package that comes with groff-1.17.2 on AIX doesn't have an.tmac,
however it does have andoc.tmac (the "modern" an.tmac, most of the newer
an.tmac's is just running andoc.tmac anyway, which again runs either
doc.tmac or an-old.tmac)

However AIX 'nroff' does have tmac.an (nroff names the files differently),
but it doesn't have tmac.andoc. Go figure.

What about using '-man' if NROFF is "nroff", and '-mandoc' if NROFF is
"gnroff"? Would that create any trouble? My linux box has groff-1.18.1
with both an.tmac and andoc.tmac, but as I said AIX' groff only has
andoc.tmac. I checked around a bit, and groff seems to have andoc.tmac
on at least AIX, Solaris, Linux, IRIX and cygwin. IIRC andoc.tmac is
an original groff "invention", so it's probably always there.

-Tor

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Received on 2004-02-02