7 # 'expressive' not available yet
8 dirs = ['ancient','chords','connecting','contemporary','expressive','guitar','parts','repeats','spacing','staff','text','vocal']
14 print "Please specify input_file."
18 srcdir = os.path.join (in_dir, dir)
19 destdir = os.path.join ('input', 'lsr', dir)
20 if not(os.path.isdir(destdir)):
21 print "Please run this script from the head of the source tree,"
22 print " and/or check that you have the right categories."
25 file_names = os.listdir (destdir)
26 for file in file_names:
27 if (file.endswith ('.ly')):
28 if (file[:3] != 'AAA'):
29 os.remove( os.path.join(destdir,file) )
31 file_names = os.listdir (in_dir + dir)
32 for file in file_names:
33 src = os.path.join (srcdir, file)
34 dest = os.path.join (destdir, file)
35 shutil.copyfile (src, dest)
36 s = os.system('lilypond -dsafe --ps -o /tmp/lsrtest ' + dest)
41 file=open("lsr-unsafe.txt", 'w')
47 print "Unsafe files printed in lsr-unsafe.txt: CHECK MANUALLY!"
48 print " (probably with xargs git-diff < lsr-unsafe.txt )"