]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Small changes to reflect changes in LaTeX2HTML support for newer versions
authorFred Drake <fdrake@acm.org>
Mon, 31 Jul 2000 17:47:49 +0000 (17:47 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 31 Jul 2000 17:47:49 +0000 (17:47 +0000)
of LaTeX2HTML.

Doc/tools/mkhowto
Doc/tools/mkhtml.sh

index 3dd744ddea39676c5647ee344253caa36d50503b..cf8a3cca829c160859d3ef71bce0bc19e6aade27 100755 (executable)
@@ -361,13 +361,16 @@ class Job:
 
     def write_l2h_aux_init_file(self):
         fp = open(self.l2h_aux_init_file, "w")
+        d = string_to_perl(os.path.dirname(L2H_INIT_FILE))
+        fp.write("package main;\n"
+                 "push (@INC, '%s');\n"
+                 "$mydir = '%s';\n"
+                 % (d, d))
         fp.write(open(L2H_INIT_FILE).read())
         fp.write("\n"
                  "# auxillary init file for latex2html\n"
                  "# generated by mkhowto\n"
-                 "push (@INC, '%s');\n"
                  "$NO_AUTO_LINK = 1;\n"
-                 % os.path.dirname(L2H_INIT_FILE)
                  )
         options = self.options
         l2hoption(fp, "ABOUT_FILE", options.about_file)
index 304839c60ad2f482b1527d500d3f3a84ff2855b8..fcd2ea01d4583b5bc7db4e7d08e3b9e445a792be 100755 (executable)
@@ -31,7 +31,9 @@ else
     mkdir $part
 fi
 
-echo "latex2html -init_file $srcdir/perl/l2hinit.perl -dir $part" \
+echo "latex2html -no_auto_link" \
+ "-up_url '../index.html' -up_title 'Documentation Index'" \
+ "-init_file $srcdir/perl/l2hinit.perl -dir $part" \
  "${1:+$@} $srcdir/$part/$part.tex"
 latex2html \
  -no_auto_link \