Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
afd391b7
Commit
afd391b7
authored
Feb 04, 2002
by
arjen@co3064164-a.bitbike.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A few required additions to XML docbook fixup script.
Added url to success story form in manual.
parent
f531e938
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
5 deletions
+47
-5
Docs/Support/docbook-fixup.pl
Docs/Support/docbook-fixup.pl
+44
-4
Docs/manual.texi
Docs/manual.texi
+3
-1
No files found.
Docs/Support/docbook-fixup.pl
View file @
afd391b7
#!/usr/bin/perl
#!/usr/bin/perl
sub
fix
{
sub
fix
_underscore
{
$str
=
shift
;
$str
=
shift
;
$str
=~
tr/_/-/
;
$str
=~
tr/_/-/
;
return
$str
;
return
$str
;
};
};
sub
strip_emph
{
$str
=
shift
;
$str
=~
s{<emphasis>(.+?)</emphasis>}
{$1}gs
;
return
$str
;
};
$data
=
join
"",
<
STDIN
>
;
$data
=
join
"",
<
STDIN
>
;
print
STDERR
"
Changing @@ to @...
\n
";
print
STDERR
"
Changing @@ to @...
\n
";
...
@@ -13,9 +21,9 @@ $data =~ s/@@/@/gs;
...
@@ -13,9 +21,9 @@ $data =~ s/@@/@/gs;
print
STDERR
"
Changing '_' to '-' in references...
\n
";
print
STDERR
"
Changing '_' to '-' in references...
\n
";
$data
=~
s{id=\"(.+?)\"}
$data
=~
s{id=\"(.+?)\"}
{"id=\"".&fix($1)."\""}gsex
;
{"id=\"".&fix
_underscore
($1)."\""}gsex
;
$data
=~
s{linkend=\"(.+?)\"}
$data
=~
s{linkend=\"(.+?)\"}
{"linkend=\"".&fix($1)."\""}gsex
;
{"linkend=\"".&fix
_underscore
($1)."\""}gsex
;
print
STDERR
"
Changing ULINK to SYSTEMITEM...
\n
";
print
STDERR
"
Changing ULINK to SYSTEMITEM...
\n
";
$data
=~
s{<ulink url=\"(.+?)\"></ulink>}
$data
=~
s{<ulink url=\"(.+?)\"></ulink>}
...
@@ -26,7 +34,7 @@ $data =~ s{<informalfigure>(.+?)</informalfigure>}
...
@@ -26,7 +34,7 @@ $data =~ s{<informalfigure>(.+?)</informalfigure>}
{}gs
;
{}gs
;
print
STDERR
"
Adding PARA inside ENTRY...
\n
";
print
STDERR
"
Adding PARA inside ENTRY...
\n
";
$data
=~
s{<entry>(.
+
?)</entry>}
$data
=~
s{<entry>(.
*
?)</entry>}
{<entry><para>$1</para></entry>}gs
;
{<entry><para>$1</para></entry>}gs
;
print
STDERR
"
Removing mailto: from email addresses...
\n
";
print
STDERR
"
Removing mailto: from email addresses...
\n
";
...
@@ -42,6 +50,38 @@ print STDERR "Removing COLSPEC...\n";
...
@@ -42,6 +50,38 @@ print STDERR "Removing COLSPEC...\n";
$data
=~
s{\n *<colspec colwidth=\"[0-9]+\*\">}
$data
=~
s{\n *<colspec colwidth=\"[0-9]+\*\">}
{}gs
;
{}gs
;
# 2002-01-31 arjen@mysql.com
print
STDERR
"
Making first row in table THEAD...
\n
";
$data
=~
s{([ ]*)<tbody>\n([ ]*<row>(.+?)</row>)}
{$1<thead>\n$2\n$1</thead>\n$1<tbody>}gs
;
# 2002-01-31 arjen@mysql.com
print
STDERR
"
Removing EMPHASIS inside THEAD...
\n
";
$data
=~
s{<thead>(.+?)</thead>}
{"<thead>".&strip_emph($1)."</thead>"}gsex
;
# 2002-01-31 arjen@mysql.com
print
STDERR
"
Removing lf before /PARA in ENTRY...
\n
";
$data
=~
s{(<entry><para>(.+?))\n(</para></entry>)}
{$1$3}gs
;
# 2002-01-31 arjen@mysql.com
print
STDERR
"
Removing whitespace before /PARA...
\n
";
$data
=~
s{[ ]+</para>}
{</para>}gs
;
# 2002-01-31 arjen@mysql.com
print
STDERR
"
Removing empty PARA in ENTRY...
\n
";
$data
=~
s{<entry><para></para></entry>}
{<entry></entry>}gs
;
# 2002-01-31 arjen@mysql.com
print
STDERR
"
Removing PARA around INDEXENTRY if no text in PARA...
\n
";
$data
=~
s{<para>((<indexterm role=\"(cp|fn)\">(<(primary|secondary)>[^<]+?</(primary|secondary)>)+?</indexterm>)+?)[\n]*</para>[\n]*}
{$1\n}gs
;
# -----
@apx
=
("
Users
",
"
MySQL Testimonials
",
"
News
",
@apx
=
("
Users
",
"
MySQL Testimonials
",
"
News
",
"
GPL-license
",
"
LGPL-license
");
"
GPL-license
",
"
LGPL-license
");
...
...
Docs/manual.texi
View file @
afd391b7
...
@@ -1969,7 +1969,9 @@ for different purposes, with a description of each site.
...
@@ -1969,7 +1969,9 @@ for different purposes, with a description of each site.
This information can give you an idea of who uses the @code{MySQL}
This information can give you an idea of who uses the @code{MySQL}
database software and how @code{MySQL Server} can fulfill
database software and how @code{MySQL Server} can fulfill
requirements.
requirements.
Do let us know about @emph{your} site or success story too!
Do let us know about @emph{your} site or success story too!
@uref{http://www.mysql.com/feedback/testimonial.php}.
@item Software
@item Software
Find, buy, download several applications and wrappers that make
Find, buy, download several applications and wrappers that make
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment