Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: use texi2pdf



I noticed that texinfo-tex (which I had to install to get texi2dvi) on
Fedora Core 6 comes with a texi2pdf converter; it's probably been around
before and I haven't noticed.

Index: configure.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/configure.ac,v
retrieving revision 1.59
diff -u -r1.59 configure.ac
--- configure.ac	15 Sep 2006 21:45:27 -0000	1.59
+++ configure.ac	4 Dec 2006 10:59:27 -0000
@@ -516,6 +516,7 @@
 AC_PROG_EGREP               dnl sets $EGREP to grep -E or egrep
 AC_CHECK_PROGS([YODL], [yodl], [: yodl])
 AC_CHECK_PROGS([PDFETEX], [pdfetex], [: pdfetex])
+AC_CHECK_PROGS([TEXI2PDF], [texi2pdf], [])
 AC_CHECK_PROGS([ANSI2KNR], [ansi2knr], [: ansi2knr])
 
 if test x"$ansi2knr" = xyes && test x"$ANSI2KNR" = x": ansi2knr"; then
Index: Config/defs.mk.in
===================================================================
RCS file: /cvsroot/zsh/zsh/Config/defs.mk.in,v
retrieving revision 1.11
diff -u -r1.11 defs.mk.in
--- Config/defs.mk.in	27 May 2006 14:21:21 -0000	1.11
+++ Config/defs.mk.in	4 Dec 2006 10:59:27 -0000
@@ -73,6 +73,7 @@
 YODL2TXT        = $(YODL)2txt
 YODL2HTML       = $(YODL)2html
 PDFETEX		= @PDFETEX@
+TEXI2PDF	= @TEXI2PDF@
 
 # install utility
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
Index: Doc/Makefile.in
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Makefile.in,v
retrieving revision 1.33
diff -u -r1.33 Makefile.in
--- Doc/Makefile.in	1 Dec 2006 10:23:06 -0000	1.33
+++ Doc/Makefile.in	4 Dec 2006 10:59:27 -0000
@@ -97,7 +97,11 @@
 .PHONY: pdf
 
 zsh.pdf: $(sdir)/zsh.texi
-	PDFTEX=$(PDFETEX) $(TEXI2DVI) --pdf $(sdir)/zsh.texi
+	if [ x$(TEXI2PDF) != x ]; then \
+	  $(TEXI2PDF) $(sdir)/zsh.texi; \
+	else \
+	  PDFTEX=$(PDFETEX) $(TEXI2DVI) --pdf $(sdir)/zsh.texi; \
+	fi
 
 texi: $(sdir)/zsh.texi
 .PHONY: texi

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


To access the latest news from CSR copy this link into a web browser:  http://www.csr.com/email_sig.php



Messages sorted by: Reverse Date, Date, Thread, Author