X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=buildscripts%2Flys-to-tely.py;h=1fd82e4cd2331586eb9f5e91fd14c658a1959d1f;hb=ce6805d467a8a002389a419f590794df52ef899e;hp=c07524cfb65712977a7c24c489ca22783390ca22;hpb=fe8d4f72a3fae7d50993a4fc0f1a418c941ad8fb;p=lilypond.git diff --git a/buildscripts/lys-to-tely.py b/buildscripts/lys-to-tely.py index c07524cfb6..1fd82e4cd2 100644 --- a/buildscripts/lys-to-tely.py +++ b/buildscripts/lys-to-tely.py @@ -19,13 +19,14 @@ import getopt 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) @@ -62,6 +63,12 @@ if files: @setfilename %s.info @settitle %s +@iftex +@afourpaper +@end iftex + +@finalout @c we do not want black boxes. + @c fool ls-latex @ignore @author Han-Wen Nienhuys and Jan Nieuwenhuizen @@ -73,9 +80,17 @@ if files: def name2line (n): # UGR - s = "@lilypondfile[printfilename]{%s}" % n + s = r""" +@ifhtml +@html + +@end html +@end ifhtml +""" % n + + s += "\n\n@lilypondfile[printfilename,texidoc]{%s}" % n return s - + files.sort () s = s + string.join (map (lambda x: name2line (x), files), "\n") s = s + '\n@bye\n' f = "%s/%s.tely" % (dir, name)