summaryrefslogtreecommitdiffstats
path: root/Doc/tools/mkhowto
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-05-03 14:29:07 (GMT)
committerFred Drake <fdrake@acm.org>1999-05-03 14:29:07 (GMT)
commit4437fdf2656c524e2069a0bde1e542b41e31fee9 (patch)
tree5fd01e6d8df0f5d90da514cc9e81cd66bb1cafbe /Doc/tools/mkhowto
parentd2d1eef0250f786e8d8d69167452b8eee83998da (diff)
downloadcpython-4437fdf2656c524e2069a0bde1e542b41e31fee9.zip
cpython-4437fdf2656c524e2069a0bde1e542b41e31fee9.tar.gz
cpython-4437fdf2656c524e2069a0bde1e542b41e31fee9.tar.bz2
Make sure latex2html doesn't produce a hard link between foo/foo.html
and foo/index.html. Make a copy instead. (Appearantly some tar openers on non-Unixlike systems can't handle hard links.)
Diffstat (limited to 'Doc/tools/mkhowto')
-rwxr-xr-xDoc/tools/mkhowto3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/tools/mkhowto b/Doc/tools/mkhowto
index bc9333b..012ffc5 100755
--- a/Doc/tools/mkhowto
+++ b/Doc/tools/mkhowto
@@ -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: