diff options
author | Karl Berry <karl@freefriends.org> | 2018-05-29 20:54:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-05-29 20:54:42 +0000 |
commit | 7adee32016cbff00197721703fe3904c8cf0a63e (patch) | |
tree | 583fd734e9715af6f9c52c996c23f0d446209c14 /Master/texmf-dist/source/support/latex-make/latex-make.dtx | |
parent | 1672d941a9b0a54aa2dc0b8ab41740a487608df4 (diff) |
latex-make (29may18)
git-svn-id: svn://tug.org/texlive/trunk@47869 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/support/latex-make/latex-make.dtx')
-rw-r--r-- | Master/texmf-dist/source/support/latex-make/latex-make.dtx | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/Master/texmf-dist/source/support/latex-make/latex-make.dtx b/Master/texmf-dist/source/support/latex-make/latex-make.dtx index 3b07ae5c60c..64657bf9fbe 100644 --- a/Master/texmf-dist/source/support/latex-make/latex-make.dtx +++ b/Master/texmf-dist/source/support/latex-make/latex-make.dtx @@ -2,7 +2,7 @@ % %<*dtx> \ProvidesFile{latex-make.dtx} -[2017/01/08 v2.2.3 Makefile for LaTeX] +[2018/05/29 v2.2.4 fix permissions on directories] %</dtx> % \fi % \iffalse @@ -111,6 +111,7 @@ % \changes{v2.2.1}{2016/02/09}{Improve configure} % \changes{v2.2.2}{2016/02/09}{Fix bugs} % \changes{v2.2.3}{2017/01/08}{Add LuaLaTeX support} +% \changes{v2.2.4}{2018/05/29}{Fix directory permissions on install} % % \makeatletter % \def\SpecialOptionIndex#1{\@bsphack @@ -1719,6 +1720,7 @@ args : all depths we want to keep """ +from __future__ import print_function import optparse import os.path import sys @@ -1735,7 +1737,7 @@ def main(): display = True def show(depth, line): if depth in depths_to_keep: - print comment+line, + print(comment+line, end='') return True else: return False @@ -1745,11 +1747,11 @@ def main(): continue if line[0] in "\t ": if display: - print line + print(line) else: Fld = line.split(' ', 9999) if not Fld[0] or Fld[0] not in ('1', '2', '3', '4', '5'): - print comment+line + print(comment+line) display = True elif Fld[0] == '4': display = show(Fld[3], line) @@ -1779,6 +1781,7 @@ Sortie standard : """ +from __future__ import print_function from optparse import OptionParser import os.path @@ -1810,20 +1813,19 @@ Makefile generating subfigures using figdepth.py or svgdepth.py') count = 1 for subfig in subfigs: - print "%s_%d%s: %s%s %s" % (root, count, ext, root, ext, sf_name) - print "\t%s %s" % (ds_name, subfig) - print "" + print("%s_%d%s: %s%s %s" % (root, count, ext, root, ext, sf_name)) + print("\t%s %s" % (ds_name, subfig)) + print("") count += 1 - print "%s := $(foreach n, " % varname, + print("%s := $(foreach n, " % varname, end='') count = 1 for subfig in subfigs: - print '%d ' % count, + print('%d ' % count, end='') count += 1 - print ", %s_$(n)%s)" % (root, ext) - print "FILES_TO_DISTCLEAN += $(%s)" % varname - print "FIGS2CREATE_LIST += $(%s)" % varname - print "$(TEMPORAIRE): $(%s)" % varname - print "$(TEMPORAIRE): $(%s)" % varname + print(", %s_$(n)%s)" % (root, ext)) + print("FILES_TO_DISTCLEAN += $(%s)" % varname) + print("FIGS2CREATE_LIST += $(%s)" % varname) + print("$(TEMPORAIRE): $(%s)" % varname) if __name__ == "__main__": main() |