X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com X-Authenticated: #27081556 X-Provags-ID: V01U2FsdGVkX1/G8wZlx2jGt93fCbkBM25qhpTOZaaF8mLtLxYz0z UYyOuGH8X6KRAL From: Juan Manuel Guerrero To: djgpp AT delorie DOT com Subject: Re: ANNOUNCE: DJGPP port of GNU Gawk 4.0.0 uploaded. Date: Sun, 16 Oct 2011 21:49:18 +0200 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201110162149.18493.juan.guerrero@gmx.de> X-Y-GMX-Trusted: 0 Here is a quick and dirty patch for the gawk 4.0.0 port Makefile that will allow to create all documentation files. Please note that you will need to have a working TeX installation and the groff 1.16 port installed. To get grops working you will need to set the GROFF_TMPDIR variable or groff will fail with an error message that it cannot create temporary files. To create the docs install the sources and patch the Makefile then cd into the top srcdir and run the following command: make djgpp_doc The Makefile will produce the black and white version of the reference card; I do not know if the groff 1.16 port supports colored PS output generation, I have not tried it. Regards, Juan M. Guerrero diff -aprNU5 gnu.orig/gawk-4.0-0/Makefile gnu/gawk-4.0-0/Makefile --- gnu.orig/gawk-4.0-0/Makefile 2011-07-19 21:20:46 +0000 +++ gnu/gawk-4.0-0/Makefile 2011-10-16 21:24:32 +0000 @@ -6,19 +6,20 @@ # Tested with GNU make on Windows, OS/2 and DOS. default: @echo "Enter $(MAK) target " - @echo " where 'target' is chosen from " - @echo " djgpp ... DOS 32-bit exe [GNU C, Delorie, v2] " - @echo " emx ..... OS/2 32-bit exe [emx/gcc; uses emxlibc.dll] " - @echo " emxnt ... NT exe [emx/gcc with RSXNT] " - @echo " emxbnd .. OS/2 and DOS 32-bit exe [emx/gcc] " - @echo " mingw32 . Windows32 exe [Mingw32 GNU C] " - @echo " ----------------------------------------------------- " - @echo " test .... Perform tests (see README_d/README.pc) " - @echo " install . Install gawk under $(prefix)/ " + @echo " where 'target' is chosen from " + @echo " djgpp ..... DOS 32-bit exe [GNU C, Delorie, v2] " + @echo " djgpp_doc . DOS 32-bit docs [GNU C, Delorie, v2] " + @echo " emx ..... ..OS/2 32-bit exe [emx/gcc; uses emxlibc.dll] " + @echo " emxnt ..... NT exe [emx/gcc with RSXNT] " + @echo " emxbnd .... OS/2 and DOS 32-bit exe [emx/gcc] " + @echo " mingw32 ... Windows32 exe [Mingw32 GNU C] " + @echo " ------------------------------------------------------- " + @echo " test .... Perform tests (see README_d/README.pc) " + @echo " install . Install gawk under $(prefix)/ " # Support dropped in 4.0 # - for DJGPP v1.x [DOS 32bit protected-mode executable] # - for MS-Visual C/C++ 4.x [Windows32 executable for Windows 9x/NT] # - for Microsoft C 7 [16bit ececutable for DOS] @@ -113,10 +114,67 @@ djgpp-debug: $(MAK) all \ CC=gcc O=.o CF='-O2 -g' \ LNK=LDJG PLNK=PLDJG DLNK=DLDJG LF2=-lm \ BIND=BDJG PBIND='' DBIND='' +DVIS = ./doc/gawk.dvi ./doc/gawkinet.dvi +PDFS = ./doc/gawk.pdf ./doc/gawkinet.pdf +PSS = ./doc/gawk.ps ./doc/gawkinet.ps +HTMLS = ./doc/gawk.html ./doc/gawkinet.html +INFOS = ./doc/gawk.info ./doc/gawkinet.info +TEXINFOS = ./doc/gawk.texi ./doc/gawkinet.texi + +TEXI2DVI = texi2dvi --build-dir=./doc +TEXI2PDF = $(TEXI2DVI) --pdf --batch +DVIPS = dvips +MAKEINFO = makeinfo --no-split --force +MAKEINFOHTML = $(MAKEINFO) --html + +TROFF = groff -t -Tps -U +#SEDME = sed -e "s/^level0 restore/level0 restore flashme 100 72 moveto (Copyright `date '+%m-%d-%y %T'`, FSF, Inc. (all)) show/" \ +# -e "s/^\/level0 save def/\/level0 save def 30 -48 translate/" + +SEDME = sed -e "s/^\/level0 save def/\/level0 save def 30 -48 translate/" + +SEDME2 = sed '/%%Page: 10 10/,/0 Cg EP/d' + +.SUFFIXES: +.SUFFIXES: .dvi .html .info .pdf .ps .texi + +.texi.info: + $(MAKEINFO) -o $@ $< + +.texi.dvi: + $(TEXI2DVI) -o $@ $< + +.texi.pdf: + $(TEXI2PDF) -o $@ $< +.dvi.ps: + $(DVIPS) -o $@ $< + +./doc/awkcard.tr: ./doc/awkcard.in + cd doc + sed 's:SRCDIR:.:' < ./awkcard.in > ./awkcard.tr + cd .. + +./doc/awkcard.nc: ./doc/macros ./doc/cardfonts ./doc/no.colors ./doc/awkcard.tr ./doc/ad.block ./doc/awkcard.in ./doc/setter.outline + cd doc +# $(TROFF) ./macros ./cardfonts ./no.colors awkcard.tr | $(SEDME) | cat ./setter.outline - | $(SEDME2) > awkcard.ps && touch awkcard.nc + $(TROFF) ./macros ./cardfonts ./no.colors awkcard.tr | $(SEDME) | cat ./setter.outline - | $(SEDME2) > awkcard.ps + cd .. + +./doc/awkcard.ps: ./doc/awkcard.nc + cd doc + touch awkcard.nc + cd .. + +./doc/awkcard.pdf: ./doc/awkcard.ps + cd doc + ps2pdf ./awkcard.ps ./awkcard.pdf + cd .. + +djgpp_doc: $(INFOS) $(DVIS) $(PSS) $(PDFS) ./doc/awkcard.ps ./doc/awkcard.pdf #======================================================================== #========================== EMX ========================================= #======================================================================== # Link command for OS/2 versions.