[Python-checkins] CVS: python/dist/src/Doc/tools mkhowto,1.12,1.13
Fred L. Drake
python-dev@python.org
Wed, 30 Aug 2000 23:14:40 -0700
Update of /cvsroot/python/python/dist/src/Doc/tools
In directory slayer.i.sourceforge.net:/tmp/cvs-serv21931/tools
Modified Files:
mkhowto
Log Message:
Add --l2h-init option, which can augment the standard LaTeX2HTML
initialization with additional Perl files. This can be given more
than once.
Index: mkhowto
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/mkhowto,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** mkhowto 2000/08/29 18:15:05 1.12
--- mkhowto 2000/08/31 06:14:38 1.13
***************
*** 98,101 ****
--- 98,102 ----
def __init__(self):
self.formats = []
+ self.l2h_init_files = []
def __getitem__(self, key):
***************
*** 109,113 ****
opts, args = getopt.getopt(args, "Hi:a:s:lDkqr:",
["all", "postscript", "help", "iconserver=",
! "address=", "a4", "letter",
"link=", "split=", "logging", "debugging",
"keep", "quiet", "runs=", "image-type=",
--- 110,114 ----
opts, args = getopt.getopt(args, "Hi:a:s:lDkqr:",
["all", "postscript", "help", "iconserver=",
! "address=", "a4", "letter", "l2h-init=",
"link=", "split=", "logging", "debugging",
"keep", "quiet", "runs=", "image-type=",
***************
*** 152,155 ****
--- 153,158 ----
elif opt == "--style":
self.style_file = os.path.abspath(arg)
+ elif opt == "--l2h-init":
+ self.l2h_init_files.append(os.path.abspath(arg))
#
# Format specifiers:
***************
*** 304,308 ****
def use_latex_manual(self, binary):
! pass
def process_synopsis_files(self):
--- 307,311 ----
def use_latex_manual(self, binary):
! self.use_latex_howto(binary)
def process_synopsis_files(self):
***************
*** 365,368 ****
--- 368,372 ----
def write_l2h_aux_init_file(self):
+ options = self.options
fp = open(self.l2h_aux_init_file, "w")
d = string_to_perl(os.path.dirname(L2H_INIT_FILE))
***************
*** 372,375 ****
--- 376,384 ----
% (d, d))
fp.write(open(L2H_INIT_FILE).read())
+ for filename in options.l2h_init_files:
+ fp.write("\n# initialization code incorporated from:\n# ")
+ fp.write(filename)
+ fp.write("\n")
+ fp.write(open(filename).read())
fp.write("\n"
"# auxillary init file for latex2html\n"
***************
*** 377,381 ****
"$NO_AUTO_LINK = 1;\n"
)
- options = self.options
l2hoption(fp, "ABOUT_FILE", options.about_file)
l2hoption(fp, "ICONSERVER", options.icon_server)
--- 386,389 ----