]> git.donarmstrong.com Git - lilypond.git/commitdiff
Revert lys-to-tely changes
authorJohn Mandereau <john.mandereau@gmail.com>
Tue, 26 Feb 2008 08:03:22 +0000 (09:03 +0100)
committerJohn Mandereau <john.mandereau@gmail.com>
Tue, 26 Feb 2008 08:03:22 +0000 (09:03 +0100)
This is not the right way to print base name of files in regtests and
other collated-files.

This commit reverts 043d8bff2c6ad082edba8a88c678299a7b9a89fd
and 85ec5d253ad5468e2d3b30e25599891b175572f3.

buildscripts/lys-to-tely.py

index dfaf671bedf13420223361f2aa33944af307e5e8..c026522434e37b77a453592aaca71487c2e5b1b3 100644 (file)
@@ -80,14 +80,6 @@ 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"""
@@ -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)