ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2011/10/17/15:31:04

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: V01U2FsdGVkX18vaoM+O64v2j94RT1LbeIlRuOQ4cZd/NKDDJGjxR
iEkpfz4h+NBMrC
From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
To: Eli Zaretskii <eliz AT gnu DOT org>
Subject: Re: ANNOUNCE: DJGPP port of GNU Gawk 4.0.0 uploaded.
Date: Mon, 17 Oct 2011 21:26:25 +0200
User-Agent: KMail/1.9.10
Cc: djgpp AT delorie DOT com
References: <201110162149 DOT 18493 DOT juan DOT guerrero AT gmx DOT de> <83liskw9yi DOT fsf AT gnu DOT org>
In-Reply-To: <83liskw9yi.fsf@gnu.org>
MIME-Version: 1.0
Message-Id: <201110172126.26057.juan.guerrero@gmx.de>
X-Y-GMX-Trusted: 0

Am Montag, 17. Oktober 2011 schrieb Eli Zaretskii:
> > From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
> > Date: Sun, 16 Oct 2011 21:49:18 +0200
> > 
> > Here is a quick and dirty patch for the gawk 4.0.0 port Makefile that will
> > allow to create all documentation files.
> 
> Thanks.
> 
> > 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.
> 
> Can the Makefile do that automatically?
> 
> > 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
> 
> If the following two lines could use ".." quoting instead of '..', the
> same patch could work with other pc ports of Gawk.
> 
> > +SEDME2 = sed '/%%Page: 10 10/,/0 Cg EP/d'
> 
> > +	sed 's:SRCDIR:.:' < ./awkcard.in > ./awkcard.tr
> 
> If you can change these to use "..", then I think it would be better
> to have a "make doc" target that is not specific to DJGPP.

I have fixed those issues.  Especially the GROFF_TMPDIR variable will be
set by the Makefile.  Neitherless it is still strange that grops dies if
this variable is not set even if TMPDIR, TEMP and TMP are set.  According
to the grof 1.16 announce this issue was solved but groff simply does
not only generates an error message but also does not produce any output.
This is what it got on the console:

cd doc
groff -t -Tps -U ./macros ./cardfonts ./no.colors awkcard.tr | sed "s/^\/level0 save
def/\/level0 save def 30 -48 translate/" | cat ./setter.outline - | sed "/%%Page: 10
10/,/0 Cg EP/d" > awkcard.ps
C:\DJGPP-2.04\BIN/grops.exe:<standard input>:4:fatal error: cannot create temporary
file: No such file or directory (ENOENT)
make.exe: *** [doc/awkcard.nc] Error 1


May be this should be fixed.

Regrds,
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-17 20:57:30 +0000
@@ -11,14 +11,15 @@ default:
 	@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 "  mingw32 . Windows32 exe [Mingw32 GNU C]               "
 	@echo "  ----------------------------------------------------- "
 	@echo "  test .... Perform tests (see README_d/README.pc)      "
 	@echo "  install . Install gawk under $(prefix)/               "
+	@echo "  doc ..... Create documentation                        "
 
 # 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]
@@ -322,5 +323,68 @@ test:	check
 TAGS:
 	etags awk.h *.y custom.h *.c *.h
 
 tags:
 	ctags awk.h *.y custom.h *.c *.h
+
+#========================================================================
+#============================= DOC ======================================
+#========================================================================
+
+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 "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: export GROFF_TMPDIR=.
+./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
+	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 ..
+
+doc: $(INFOS) $(DVIS) $(PSS) $(PDFS) ./doc/awkcard.ps ./doc/awkcard.pdf
+

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019