From 7adee32016cbff00197721703fe3904c8cf0a63e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 29 May 2018 20:54:42 +0000 Subject: latex-make (29may18) git-svn-id: svn://tug.org/texlive/trunk@47869 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/latex-make/figdepth.py | 7 ++++--- Master/texmf-dist/scripts/latex-make/gensubfig.py | 20 ++++++++++---------- 2 files changed, 14 insertions(+), 13 deletions(-) (limited to 'Master/texmf-dist/scripts') diff --git a/Master/texmf-dist/scripts/latex-make/figdepth.py b/Master/texmf-dist/scripts/latex-make/figdepth.py index 7782d0b29e6..095e0f4a7d7 100755 --- a/Master/texmf-dist/scripts/latex-make/figdepth.py +++ b/Master/texmf-dist/scripts/latex-make/figdepth.py @@ -9,6 +9,7 @@ args : all depths we want to keep """ +from __future__ import print_function import optparse import os.path import sys @@ -25,7 +26,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 @@ -35,11 +36,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) diff --git a/Master/texmf-dist/scripts/latex-make/gensubfig.py b/Master/texmf-dist/scripts/latex-make/gensubfig.py index a6fcd5d5677..0c5316d448a 100755 --- a/Master/texmf-dist/scripts/latex-make/gensubfig.py +++ b/Master/texmf-dist/scripts/latex-make/gensubfig.py @@ -13,6 +13,7 @@ Sortie standard : """ +from __future__ import print_function from optparse import OptionParser import os.path @@ -44,20 +45,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() -- cgit v1.2.3