X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=buildscripts%2Flys-to-tely.py;h=e2df5a6bc3fbb2f282d755bd54f17a7f1fa8d8d3;hb=91708b30fba67f8fd589980e03ff420c26473a5a;hp=dfaf671bedf13420223361f2aa33944af307e5e8;hpb=0ffff1268af37ea5a5d3123976e83a81ad7e61f7;p=lilypond.git
diff --git a/buildscripts/lys-to-tely.py b/buildscripts/lys-to-tely.py
index dfaf671bed..e2df5a6bc3 100644
--- a/buildscripts/lys-to-tely.py
+++ b/buildscripts/lys-to-tely.py
@@ -80,24 +80,16 @@ for opt in options:
else:
raise Exception ('unknown option: ' + o)
-def shorten_file_name (n):
- # ugh, regtests file names appear as full paths in GUB builds
- # we try to do something here
- b = os.path.basename (n)
- if os.path.exists (b):
- return b
- return n
-
def name2line (n):
- # UGR
s = r"""
@ifhtml
@html
-
+
@end html
@end ifhtml
-@lilypondfile[%s]{%s}""" % (n, fragment_options, n)
+@lilypondfile[%s]{%s}
+""" % (os.path.basename (n), fragment_options, n)
return s
if files:
@@ -106,7 +98,6 @@ if files:
name = os.path.basename (name)
template = template % vars ()
- files = map (shorten_file_name, files)
files.sort ()
s = "\n".join (map (name2line, files))
s = template.replace (include_snippets, s, 1)