From 886406c2301efba1dd894aab7c01c132b4ee9eac Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 31 Oct 2008 14:35:30 +0000 Subject: [PATCH] The conversion rule from postgres.sgml to postgres.xml didn't work with BSD sed. So write it in Perl, which is more portable and a bit faster, too. We already use Perl for standard documentation builds, so this imposes no additional requirement. --- doc/src/sgml/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile index b3cf38d7e9..9974796498 100644 --- a/doc/src/sgml/Makefile +++ b/doc/src/sgml/Makefile @@ -228,8 +228,8 @@ XSLTPROC = xsltproc postgres.xml: postgres.sgml $(GENERATED_SGML) $(OSX) -D. -x lower $< | \ - sed -e 's/\[\(amp\|copy\|egrave\|gt\|lt\|mdash\|nbsp\|ouml\|pi\|quot\|uuml\) *\]/\&\1;/g' \ - -e '1a\' -e '' \ + $(PERL) -p -e 's/\[(amp|copy|egrave|gt|lt|mdash|nbsp|ouml|pi|quot|uuml) *\]/\&\1;/g;' \ + -e '$$_ .= qq{\n} if $$. == 1;' \ >$@ # ' hello Emacs -- 2.39.5