program_name = 'lys-to-tely'
def help ():
- sys.stdout.write (r"""Usage: lys-to-tely [OPTION]... LY-FILE...
+ sys.stdout.write (r"""Usage: lys-to-tely [OPTIONS]... LY-FILE...
Construct tely doc from LY-FILEs.
Options:
-h, --help print this help
- -o,output=NAME write tely doc to NAME
- -t,title=TITLE set tely tely doc title TITLE
+ -o, --output=NAME write tely doc to NAME
+ -t, --title=TITLE set tely doc title TITLE
+
""")
sys.exit (0)
@settitle %s
@finalout @c we do not want black boxes.
+@iftex
+@afourpaper
+@end iftex
+
@c fool ls-latex
@ignore
@author Han-Wen Nienhuys and Jan Nieuwenhuizen
@end ifhtml
""" % n
- s += "@lilypondfile[printfilename]{%s}" % n
+ s += "\n\n@lilypondfile[printfilename]{%s}" % n
return s
files.sort ()
s = s + string.join (map (lambda x: name2line (x), files), "\n")