Author: paul
Date: 2006-07-18 21:13:27 +0200 (Tue, 18 Jul 2006)
New Revision: 2761
Log:
r11552@polar: paul | 2006-07-18 12:02:43 -0500
chapterfmt.pl: Parameterize main document basename.
Modified:
trunk/tools/chapterfmt.pl
Property changes on: trunk
___________________________________________________________________
Name: svk:merge
- 4767c598-dc10-0410-bea0-d01b485662eb:/mysqldoc-local/mysqldoc/trunk:11522
b5ec3a16-e900-0410-9ad2-d183a3acac99:/mysqldoc-local/mysqldoc/trunk:12339
bf112a9c-6c03-0410-a055-ad865cd57414:/mysqldoc-local/mysqldoc/trunk:8441
+ 4767c598-dc10-0410-bea0-d01b485662eb:/mysqldoc-local/mysqldoc/trunk:11552
b5ec3a16-e900-0410-9ad2-d183a3acac99:/mysqldoc-local/mysqldoc/trunk:12339
bf112a9c-6c03-0410-a055-ad865cd57414:/mysqldoc-local/mysqldoc/trunk:8441
Modified: trunk/tools/chapterfmt.pl
===================================================================
--- trunk/tools/chapterfmt.pl 2006-07-18 13:14:38 UTC (rev 2760)
+++ trunk/tools/chapterfmt.pl 2006-07-18 19:13:27 UTC (rev 2761)
Changed blocks: 4, Lines Added: 9, Lines Deleted: 3; 1761 bytes
@@ -30,6 +30,8 @@
# split manual.
# 2004-11-11
# - Remember to build the -toc-entries.xml file for .txt output.
+# 2006-07-18
+# - Add --doc-name option for specifying the document basename.
use Getopt::Long;
$Getopt::Long::ignorecase = 0; # options are case sensitive
@@ -42,6 +44,8 @@
Options:
--help
Print this message
+--doc-name=name
+ Specify the main document basename. (Default: manual)
--no-rebuild
Do not rebuild monolithic manual from split manual.
(Assume the monolithic manual is up to date.)
@@ -55,10 +59,12 @@
# Variables for command line options; most are undefined initially.
my $help;
+my $doc_name = "manual";
my $no_rebuild;
GetOptions (
"help" => \$help, # print help message
+ "doc-name:s" => \$doc_name, # main document basename
"no-rebuild" => \$no_rebuild # don't rebuild monolithic manual
) or die "$usage\n";
@@ -96,11 +102,11 @@
# We must be careful to use an XML file named chapter-$chapname.xml here
# to avoid overwriting any of the manual's actual chapter files!
- system "cp manual$lang.xml chapter-$chapname$lang.xml";
+ system "cp $doc_name$lang.xml chapter-$chapname$lang.xml";
if ($ofmt eq "txt")
{
- system "make manual$lang-toc-entries.xml";
- system "cp manual$lang-toc-entries.xml chapter-$chapname$lang-toc-entries.xml";
+ system "make $doc_name$lang-toc-entries.xml";
+ system "cp $doc_name$lang-toc-entries.xml chapter-$chapname$lang-toc-entries.xml";
}
system "make chapter-$chapname$lang.$ofmt"
. " XSLTPROC_EXTRA_FLAGS=\"--stringparam rootid $chapname\"";
| Thread |
|---|
| • svn commit - mysqldoc@docsrva: r2761 - in trunk: . tools | paul | 18 Jul |