summaryrefslogtreecommitdiff
path: root/Docs/Support
diff options
context:
space:
mode:
authorarjen@co3064164-a.bitbike.com <>2002-02-22 12:04:59 +1000
committerarjen@co3064164-a.bitbike.com <>2002-02-22 12:04:59 +1000
commit8a4b1298e57baede35c0a9b6a1beeb99c0778e33 (patch)
treebc849ad827223cc7e2a5977a9b47d94f4ddf413d /Docs/Support
parentda19322368b4611652c08711f73166e9d01d3d3c (diff)
downloadmariadb-git-8a4b1298e57baede35c0a9b6a1beeb99c0778e33.tar.gz
Various fixups to correct DocBook output of manual.
Diffstat (limited to 'Docs/Support')
-rwxr-xr-xDocs/Support/docbook-fixup.pl13
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;
};