]> git.donarmstrong.com Git - lilypond.git/blobdiff - buildscripts/lys-to-tely.py
*** empty log message ***
[lilypond.git] / buildscripts / lys-to-tely.py
index 35adbabbf37bdfeb461ac5780273ddcc6439a8e9..98c58357f9b5f7b78bfc043834d6e0669bd47229 100644 (file)
@@ -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,13 @@ if files:
 @setfilename %s.info
 @settitle %s
 
+@documentencoding utf-8
+@iftex
+@afourpaper
+@end iftex
+
+@finalout @c we do not want black boxes.
+  
 @c fool ls-latex
 @ignore
 @author Han-Wen Nienhuys and Jan Nieuwenhuizen
@@ -76,14 +84,14 @@ if files:
                s = r"""
 @ifhtml
 @html
-<NAME=%s>
+<A NAME="%s"></A>
 @end html
 @end ifhtml
 """ % n
                
-               s += "@lilypondfile[printfilename]{%s}" % 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)