Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2907705

Browse files
committed
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 noadditional requirement.
1 parenta1d2e16 commit2907705

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎doc/src/sgml/Makefile

Lines changed: 3 additions & 3 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.108 2008/10/04 02:19:08 tgl Exp $
5+
# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.109 2008/10/31 14:35:30 petere Exp $
66
#
77
#----------------------------------------------------------------------------
88

@@ -228,8 +228,8 @@ XSLTPROC = xsltproc
228228

229229
postgres.xml: postgres.sgml$(GENERATED_SGML)
230230
$(OSX) -D. -x lower$<|\
231-
sed -e's/\[\(amp\|copy\|egrave\|gt\|lt\|mdash\|nbsp\|ouml\|pi\|quot\|uuml\) *\]/\&\1;/g'\
232-
-e'1a\'-e'<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">'\
231+
$(PERL) -p -e's/\[(amp|copy|egrave|gt|lt|mdash|nbsp|ouml|pi|quot|uuml) *\]/\&\1;/g;'\
232+
-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;'\
233233
>$@
234234
# ' hello Emacs
235235

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp