summaryrefslogtreecommitdiff
path: root/Docs
diff options
context:
space:
mode:
authorjcole@sarvik.tfr.cafe.ee <>2001-11-28 22:17:16 +0200
committerjcole@sarvik.tfr.cafe.ee <>2001-11-28 22:17:16 +0200
commit6aef747667913e08a3117c05165298bdf46b9643 (patch)
tree95a75a28e95cd297d7493c9002a7bfc00682e4b1 /Docs
parent49b6f02dbe7c5d30c989b3a5c63945d3b0c8a520 (diff)
parent8f35feaf0ef610f00607116443680219d763962e (diff)
downloadmariadb-git-6aef747667913e08a3117c05165298bdf46b9643.tar.gz
Merge jcole@work.mysql.com:/home/bk/mysql-4.0
into sarvik.tfr.cafe.ee:/usr/home/jcole/bk/mysql-4.0
Diffstat (limited to 'Docs')
-rwxr-xr-xDocs/Support/docbook-fixup.pl24
1 files changed, 24 insertions, 0 deletions
diff --git a/Docs/Support/docbook-fixup.pl b/Docs/Support/docbook-fixup.pl
index 885953db0a0..eb3c3018baf 100755
--- a/Docs/Support/docbook-fixup.pl
+++ b/Docs/Support/docbook-fixup.pl
@@ -29,6 +29,14 @@ print STDERR "Adding PARA inside ENTRY...\n";
$data =~ s{<entry>(.+?)</entry>}
{<entry><para>$1</para></entry>}gs;
+print STDERR "Removing mailto: from email addresses...\n";
+$data =~ s{mailto:}
+ {}gs;
+
+print STDERR "Fixing spacing problem with titles...\n";
+$data =~ s{</(\w+)>(\w{2,})}
+ {</$1> $2}gs;
+
@apx = ("Users", "MySQL Testimonials", "News",
"GPL-license", "LGPL-license");
@@ -36,6 +44,22 @@ foreach $apx (@apx) {
print STDERR "Removing appendix $apx...\n";
$data =~ s{<appendix id=\"$apx\">(.+?)</appendix>}
{}gs;
+
+ print STDERR " ... Building list of removed nodes ...\n";
+ foreach(split "\n", $&) {
+ push @nodes, $2 if(/<(\w+) id=\"(.+?)\">/)
+ };
+};
+
+print STDERR "Fixing references to removed nodes...\n";
+foreach $node (@nodes) {
+ $web = $node;
+ $web =~ s/[ ]/_/;
+ $web = "http://www.mysql.com/doc/" .
+ (join "/", (split //, $web)[0..1])."/$web.html";
+ print STDERR "$node -> $web\n";
+ $data =~ s{<(\w+) linkend=\"$node\">}
+ {$web}gs;
};
print STDOUT $data;