diff options
author | arjen@co3064164-a.bitbike.com <> | 2002-02-22 12:04:59 +1000 |
---|---|---|
committer | arjen@co3064164-a.bitbike.com <> | 2002-02-22 12:04:59 +1000 |
commit | 8a4b1298e57baede35c0a9b6a1beeb99c0778e33 (patch) | |
tree | bc849ad827223cc7e2a5977a9b47d94f4ddf413d /Docs/Support | |
parent | da19322368b4611652c08711f73166e9d01d3d3c (diff) | |
download | mariadb-git-8a4b1298e57baede35c0a9b6a1beeb99c0778e33.tar.gz |
Various fixups to correct DocBook output of manual.
Diffstat (limited to 'Docs/Support')
-rwxr-xr-x | Docs/Support/docbook-fixup.pl | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Docs/Support/docbook-fixup.pl b/Docs/Support/docbook-fixup.pl index 03a2a29f1e8..3f329423279 100755 --- a/Docs/Support/docbook-fixup.pl +++ b/Docs/Support/docbook-fixup.pl @@ -82,6 +82,16 @@ print STDERR "Adding closing / to XREF...\n"; $data =~ s{<xref (.+?)>} {<xref $1 />}gs; +# 2002-02-22 arjen@mysql.com +print STDERR "Adding \"See \" to XREFs that used to be \@xref...\n"; +$data =~ s{([\.\'\!\)])[\n ]*<xref } + {$1 See <xref }gs; + +# 2002-02-22 arjen@mysql.com +print STDERR "Adding \"see \" to (XREFs) that used to be (\@pxref)...\n"; +$data =~ s{(\(|[[,;])([\n]*[ ]*)<xref } + {$1$2see <xref }gs; + # 2002-01-30 arjen@mysql.com print STDERR "Removing COLSPEC...\n"; $data =~ s{\n *<colspec colwidth=\"[0-9]+\*\">} @@ -133,6 +143,7 @@ foreach $apx (@apx) { }; }; +# 2002-02-22 arjen@mysql.com (added fix " /" to end of regex, to make it match) print STDERR "Fixing references to removed nodes...\n"; foreach $node (@nodes) { $web = $node; @@ -140,7 +151,7 @@ foreach $node (@nodes) { $web = "http://www.mysql.com/doc/" . (join "/", (split //, $web)[0..1])."/$web.html"; print STDERR "$node -> $web\n"; - $data =~ s{<(\w+) linkend=\"$node\">} + $data =~ s{<(\w+) linkend=\"$node\" />} {$web}gs; }; |