mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
d2fcac48e4
Docs/Manual_style_guidelines.txt: Updated guidelines, mostly identified globals from O'Reilly proofread. Docs/Support/docbook-fixup.pl: Added post-processing for new docbook-prefix preprocessing. Shuffled/fixed some other minor stuff. Docs/Support/make-docbook: Include preprocessing before makeinfo. Docs/manual.texi: Processing O'Reilly proofread, including global style changes. Watch this one VERY VERY carefully - it's extremely drastic!
29 lines
1.2 KiB
Bash
Executable file
29 lines
1.2 KiB
Bash
Executable file
#!/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
|
|
# 2002-04-26 arjen - the below just picks #.# instead of #.#.#-alpha
|
|
# (code by mwagner - tnx)
|
|
grep "AM_INIT_AUTOMAKE(mysql, " ../configure.in | \
|
|
perl -p -e 's/AM_INIT_AUTOMAKE\(mysql,\s(\d+\.\d+)\..+/$1/' >> 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
|
|
Support/docbook-prefix.pl < manual.texi |\
|
|
makeinfo --force --no-ifinfo --docbook -o - |\
|
|
Support/docbook-fixup.pl > mysql.xml
|
|
|
|
# See if the XML output is well-formed
|
|
xmlwf mysql.xml
|
|
|
|
# If all is well, keep processing
|
|
cat mysql.xml | Support/colspec-fix.pl | Support/docbook-split;
|
|
|