]> git.donarmstrong.com Git - lilypond.git/blobdiff - buildscripts/makelsr.py
LSR: add real-music.
[lilypond.git] / buildscripts / makelsr.py
index 748f35f651f0ee3d9f5f0a8b72010f185de749bf..8e8339818b3a6eaaea64a5458880d27edc9e3680 100755 (executable)
@@ -4,9 +4,12 @@ import os
 import os.path
 import shutil
 
-dirs = ['ancient','chords','connecting','contemporary','expressive','education','guitar','parts','pitch','repeats','scheme','spacing','staff','text','vocal','other','non-music','engravers','instrument-specific']
+dirs = []
+dirs.extend(['pitches', 'rhythms'])
+
+dirs.extend(['real-music'])
+#dirs = ['ancient','chords','connecting','contemporary','expressive','education','guitar','parts','pitch','repeats','scheme','spacing','staff','text','vocal','other','nonmusic','engravers','instrument']
 notsafe=[]
-notconvert=[]
 
 try:
        in_dir = sys.argv[1]
@@ -28,13 +31,12 @@ def copy_dir_with_test(srcdir, destdir):
        for file in file_names:
                if (file.endswith ('.ly')):
                        src = os.path.join (srcdir, file)
-                       dest = os.path.join (destdir, file)
+                       destname = file.replace (';', '-')
+                       dest = os.path.join (destdir, destname)
                        copy_with_warning(src, dest)
-                       s = os.system('convert-ly -e ' + dest)
+                       os.system('convert-ly -e ' + dest)
                        if os.path.exists( dest + '~' ):
                                os.remove( dest + '~' )
-                       if s:
-                               notconvert.append(dest)
                        # the -V seems to make unsafe snippets fail nicer/sooner.
                        s = os.system('nice lilypond -V -dno-print-pages -dsafe -o /tmp/lsrtest ' + dest)
                        #s = os.system('nice lilypond -dno-print-pages -dsafe -o /tmp/lsrtest ' + dest)
@@ -61,11 +63,6 @@ for dir in dirs:
        copy_dir_with_test( os.path.join ('input', 'new', dir), destdir )
 
 
-file=open("not-converted.txt", 'w')
-for s in notconvert:
-       file.write(s+'\n')
-file.close()
-
 file=open("lsr-unsafe.txt", 'w')
 for s in notsafe:
        file.write(s+'\n')
@@ -73,9 +70,6 @@ file.close()
 
 print
 print
-print "List of files that could not be automatically updated printed",
-print "in not-converted.txt: CHECK MANUALLY!"
-print
 print "Unsafe files printed in lsr-unsafe.txt: CHECK MANUALLY!"
 print "  xargs git-diff < lsr-unsafe.txt"
 print