- src = os.path.join (srcdir, file)
- dest = os.path.join (destdir, file)
- copy_with_warning(src, dest)
- s = os.system('lilypond -dsafe -dbackend=svg -o /tmp/lsrtest ' + dest)
- if s:
- notsafe.append(dest)
+ if (file.endswith ('.ly')):
+ src = os.path.join (srcdir, file)
+ destname = file.replace (';', '-')
+ dest = os.path.join (destdir, destname)
+ copy_with_warning(src, dest)
+ os.system('convert-ly -e ' + dest)
+ if os.path.exists( dest + '~' ):
+ os.remove( 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)
+ if s:
+ notsafe.append(dest)