]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Make sure latex2html doesn't produce a hard link between foo/foo.html
authorFred Drake <fdrake@acm.org>
Mon, 3 May 1999 14:29:07 +0000 (14:29 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 3 May 1999 14:29:07 +0000 (14:29 +0000)
and foo/index.html.  Make a copy instead.  (Appearantly some tar
openers on non-Unixlike systems can't handle hard links.)

Doc/tools/mkhowto

index bc9333b3d2f1f0f58441a04b80d3ca0885b99a99..012ffc5705fef4754279d4355545127ddf5b6112 100755 (executable)
@@ -294,6 +294,8 @@ class Job:
         # ... postprocess
         shutil.copyfile(self.options.style_file,
                         os.path.join(builddir, self.doc + ".css"))
+        shutil.copyfile(os.path.join(builddir, self.doc + ".html"),
+                        os.path.join(builddir, "index.html"))
         if max_split_depth != 1:
             pwd = os.getcwd()
             try:
@@ -317,6 +319,7 @@ class Job:
         fp = open(self.l2h_aux_init_file, "w")
         fp.write("# auxillary init file for latex2html\n"
                  "# generated by mkhowto\n"
+                 "$NO_AUTO_LINK = 1;\n"
                  )
         options = self.options
         for fn in options.config_files: