mirror of
https://github.com/python/cpython.git
synced 2025-11-15 08:01:29 +00:00
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.)
This commit is contained in:
parent
d2d1eef025
commit
4437fdf265
1 changed files with 3 additions and 0 deletions
|
|
@ -294,6 +294,8 @@ class Job:
|
||||||
# ... postprocess
|
# ... postprocess
|
||||||
shutil.copyfile(self.options.style_file,
|
shutil.copyfile(self.options.style_file,
|
||||||
os.path.join(builddir, self.doc + ".css"))
|
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:
|
if max_split_depth != 1:
|
||||||
pwd = os.getcwd()
|
pwd = os.getcwd()
|
||||||
try:
|
try:
|
||||||
|
|
@ -317,6 +319,7 @@ class Job:
|
||||||
fp = open(self.l2h_aux_init_file, "w")
|
fp = open(self.l2h_aux_init_file, "w")
|
||||||
fp.write("# auxillary init file for latex2html\n"
|
fp.write("# auxillary init file for latex2html\n"
|
||||||
"# generated by mkhowto\n"
|
"# generated by mkhowto\n"
|
||||||
|
"$NO_AUTO_LINK = 1;\n"
|
||||||
)
|
)
|
||||||
options = self.options
|
options = self.options
|
||||||
for fn in options.config_files:
|
for fn in options.config_files:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue