Skip to content

Commit 756d450

Browse files
committed
Add experimental support for db2x texinfo
Andreas Seltenreich
1 parent 5441a64 commit 756d450

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

doc/src/sgml/Makefile

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# PostgreSQL documentation makefile
44
#
5-
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.76 2006/04/06 18:54:36 petere Exp $
5+
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.77 2006/10/03 21:13:17 momjian Exp $
66
#
77
#----------------------------------------------------------------------------
88

@@ -212,7 +212,7 @@ XSLTPROC = xsltproc
212212

213213
postgres.xml: postgres.sgml $(GENERATED_SGML)
214214
$(OSX) -x lower $< | \
215-
sed -e 's/\[\(lt\|gt\|amp\|nbsp\|copy\|quot\|ouml\|uuml\|egrave\) *\]/\&\1;/g' \
215+
sed -e 's/\[\(amp\|copy\|egrave\|gt\|lt\|mdash\|nbsp\|ouml\|pi\|quot\|uuml\) *\]/\&\1;/g' \
216216
-e '1a\' -e '<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">' \
217217
>$@
218218

@@ -222,6 +222,24 @@ testxml: stylesheet.xsl postgres.xml
222222
htmlhelp: stylesheet-hh.xsl postgres.xml
223223
$(XSLTPROC) $(XSLTPROCFLAGS) --stringparam pg.version '$(VERSION)' $^
224224

225+
##
226+
## Experimental Texinfo targets
227+
##
228+
229+
DB2X_TEXIXML = db2x_texixml
230+
DB2X_XSLTPROC = db2x_xsltproc
231+
MAKEINFO = makeinfo
232+
233+
postgres.texixml: postgres.xml
234+
$(DB2X_XSLTPROC) -s texi $< -o $@
235+
236+
postgres.texi: postgres.texixml
237+
$(DB2X_TEXIXML) --encoding=iso-8859-1//TRANSLIT $< \
238+
--to-stdout > $@
239+
240+
postgres.info: postgres.texi
241+
$(MAKEINFO) --enable-encoding --no-split \
242+
--no-validate $< -o $@
225243

226244
##
227245
## Check
@@ -249,3 +267,5 @@ clean distclean maintainer-clean:
249267
rm -f INSTALL HISTORY regress_README
250268
# XML
251269
rm -f postgres.xml htmlhelp.hhp toc.hhc index.hhk
270+
# Texinfo
271+
rm -f *.texixml *.texi *.info db2texi.refs

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy