doc: Handle additional character entities for SGML/XML conversion
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 11 Oct 2013 01:14:33 +0000 (21:14 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 11 Oct 2013 01:14:33 +0000 (21:14 -0400)
doc/src/sgml/Makefile

index 50d9203bbe2553f0fb62327ca551371b7702ffc5..a38a08545e09b958ca85aab0e21fc031daa4d7e5 100644 (file)
@@ -251,7 +251,7 @@ regress_README.html: regress.sgml
 # $(srcdir) on the postgres.sgml dependency in this rule.  gmake bug?
 postgres.xml: $(srcdir)/postgres.sgml $(ALMOSTALLSGML)
    $(OSX) -D. -x lower $< >postgres.xmltmp
-   $(PERL) -p -e 's/\[(amp|copy|egrave|gt|lt|mdash|nbsp|ouml|pi|quot|uuml) *\]/\&\1;/g;' \
+   $(PERL) -p -e 's/\[(aacute|acirc|aelig|agrave|amp|aring|atilde|auml|bull|copy|eacute|egrave|gt|iacute|lt|mdash|nbsp|ntilde|oacute|ocirc|oslash|ouml|pi|quot|scaron|uuml) *\]/\&\1;/gi;' \
               -e '$$_ .= qq{<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">\n} if $$. == 1;' \
      <postgres.xmltmp > $@
    rm postgres.xmltmp