diff options
author | unknown <arjen@co3064164-a.bitbike.com> | 2002-01-30 17:44:47 +1000 |
---|---|---|
committer | unknown <arjen@co3064164-a.bitbike.com> | 2002-01-30 17:44:47 +1000 |
commit | 525f1a4a2837a3d462d45adf0418a7788678a9d5 (patch) | |
tree | eb86105439d51f3f99f2f52a4db22573e7a31bb3 /Docs/Support | |
parent | 82873647ff7e0872fcbc696bb5a4e300ed9b13e9 (diff) | |
download | mariadb-git-525f1a4a2837a3d462d45adf0418a7788678a9d5.tar.gz |
New changes for DocBook XML output filter.
Added Docs/Support/make-docbook script, to work without makefile.
BitKeeper/etc/ignore:
Added Docs/mysql.xml to the ignore list
Docs/Support/docbook-fixup.pl:
New changes for DocBook XML output filter.
Diffstat (limited to 'Docs/Support')
-rwxr-xr-x | Docs/Support/docbook-fixup.pl | 5 | ||||
-rwxr-xr-x | Docs/Support/make-docbook | 19 |
2 files changed, 24 insertions, 0 deletions
diff --git a/Docs/Support/docbook-fixup.pl b/Docs/Support/docbook-fixup.pl index eb3c3018baf..f7f8c301cb7 100755 --- a/Docs/Support/docbook-fixup.pl +++ b/Docs/Support/docbook-fixup.pl @@ -37,6 +37,11 @@ print STDERR "Fixing spacing problem with titles...\n"; $data =~ s{</(\w+)>(\w{2,})} {</$1> $2}gs; +# 2002-01-30 arjen@mysql.com +print STDERR "Removing COLSPEC...\n"; +$data =~ s{\n *<colspec colwidth=\"[0-9]+\*\">} + {}gs; + @apx = ("Users", "MySQL Testimonials", "News", "GPL-license", "LGPL-license"); diff --git a/Docs/Support/make-docbook b/Docs/Support/make-docbook new file mode 100755 index 00000000000..2904eef4926 --- /dev/null +++ b/Docs/Support/make-docbook @@ -0,0 +1,19 @@ +#!/bin/sh +# 2002-01-30 arjen@mysql.com +# Use this to create mysql.xml (the DocBook XML format output of manual.texi) +# Requires makeinfo 4.0c + +#create include.texi with version/port # + echo "@c This file is autogenerated by the Makefile" > include.texi + echo -n "@set mysql_version " >> include.texi + grep "AM_INIT_AUTOMAKE(mysql, " ../configure.in | \ + sed -e 's;AM_INIT_AUTOMAKE(mysql, ;;' -e 's;);;' >> include.texi + echo -n "@set default_port " >> include.texi + grep "MYSQL_TCP_PORT_DEFAULT=" ../configure.in | \ + sed -e 's;MYSQL_TCP_PORT_DEFAULT=;;' >> include.texi + +# produce DocBook XML + makeinfo --force --no-ifinfo --docbook manual.texi + mv mysql.xml mysql-tmp.xml + Support/docbook-fixup.pl <mysql-tmp.xml >mysql.xml + rm -f mysql-tmp.xml |