mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 09:15:50 +00:00
On Windows, remove log file generated by miktex and copy chkconfig.ltx
obeying the umask value as on cygwin access is controlled through ACLs and the python port knows nothing about them. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19309 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6d602a5845
commit
3790dc945b
@ -104,6 +104,7 @@ def checkTeXPaths():
|
||||
inpname = tmpfname.replace('\\', '/')
|
||||
else:
|
||||
inpname = cmdOutput('cygpath -m ' + tmpfname)
|
||||
logname = os.path.basename(inpname.replace('.ltx', '.log'))
|
||||
inpname = inpname.replace('~', '\\string~')
|
||||
os.write(fd, r'\relax')
|
||||
os.close(fd)
|
||||
@ -114,7 +115,7 @@ def checkTeXPaths():
|
||||
else:
|
||||
print "configure: TeX engine needs windows-style paths in latex files"
|
||||
windows_style_tex_paths = 'true'
|
||||
removeFiles([tmpfname, 'texput.log'])
|
||||
removeFiles([tmpfname, logname, 'texput.log'])
|
||||
return windows_style_tex_paths
|
||||
|
||||
|
||||
@ -623,7 +624,7 @@ def checkLatexConfig(check_config, bool_docbook, bool_linuxdoc):
|
||||
'chkconfig.classes', 'chklayouts.tex'])
|
||||
rmcopy = False
|
||||
if not os.path.isfile( 'chkconfig.ltx' ):
|
||||
shutil.copy( os.path.join(srcdir, 'chkconfig.ltx'), 'chkconfig.ltx' )
|
||||
shutil.copyfile( os.path.join(srcdir, 'chkconfig.ltx'), 'chkconfig.ltx' )
|
||||
rmcopy = True
|
||||
writeToFile('wrap_chkconfig.ltx', '%s\n%s\n\\input{chkconfig.ltx}\n' \
|
||||
% (linuxdoc_cmd, docbook_cmd) )
|
||||
|
Loading…
Reference in New Issue
Block a user