]> git.donarmstrong.com Git - lilypond.git/commitdiff
lys-to-tely: Allow the makefile to specify a different author than Han-Wen/Jan
authorReinhold Kainhofer <reinhold@kainhofer.com>
Thu, 24 Jun 2010 10:00:03 +0000 (12:00 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 3 Jul 2010 10:35:14 +0000 (12:35 +0200)
make/lysdoc-rules.make
make/lysdoc-vars.make
scripts/build/lys-to-tely.py

index cfaabe3355f1d6b05d2bddcb4a2fcaca9da18d6a..5c38f7d4ab33e3bf6db41eb100b61f9804877da4 100644 (file)
@@ -1,2 +1,2 @@
 $(outdir)/collated-files.tely: $(COLLATED_FILES)
-       $(LYS_TO_TELY) --name=$(outdir)/collated-files.tely --title="$(TITLE)" $^
+       $(LYS_TO_TELY) --name=$(outdir)/collated-files.tely --title="$(TITLE)" --author="$(AUTHOR)" $^
index 5cbc61717c7c1274227f6ac1acb43f736847f860..337460c3da1ae494f868813a5f251e81bb7a071e 100644 (file)
@@ -1,4 +1,5 @@
 TITLE=LYs Doc
+AUTHOR=Han-Wen Nienhuys and Jan Nieuwenhuizen
 
 
 ifeq ($(COLLATED_FILES),)
index 0eb12047e697537e146e8fe065072e4815b1d195..d503786e3e13169597c682139973a70bb88a8c91 100644 (file)
@@ -27,6 +27,7 @@ Options:
    options
  -o, --output=NAME              write tely doc to NAME
  -t, --title=TITLE              set tely doc title TITLE
+ -a, --author=AUTHOR            set tely author AUTHOR
      --template=TEMPLATE        use TEMPLATE as Texinfo template file,
    instead of standard template; TEMPLATE should contain a command
    '%(include_snippets)s' to tell where to insert LY-FILEs.  When this
@@ -38,10 +39,11 @@ def help (text):
     sys.exit (0)
 
 (options, files) = getopt.getopt (sys.argv[1:], 'f:hn:t:',
-                     ['fragment-options=', 'help', 'name=', 'title=', 'template='])
+                     ['fragment-options=', 'help', 'name=', 'title=', 'author=', 'template='])
 
 name = "ly-doc"
 title = "Ly Doc"
+author = "Han-Wen Nienhuys and Jan Nieuwenhuizen"
 template = '''\input texinfo
 @setfilename %%(name)s.info
 @settitle %%(title)s
@@ -55,7 +57,7 @@ template = '''\input texinfo
 
 @c fool ls-latex
 @ignore
-@author Han-Wen Nienhuys and Jan Nieuwenhuizen
+@author %%(author)s
 @title %%(title)s
 @end ignore
 
@@ -71,14 +73,16 @@ for opt in options:
     o = opt[0]
     a = opt[1]
     if o == '-h' or o == '--help':
-        # We can't use vars () inside a function, as that only contains all 
-        # local variables and none of the global variables! Thus we have to 
+        # We can't use vars () inside a function, as that only contains all
+        # local variables and none of the global variables! Thus we have to
         # generate the help text here and pass it to the function...
         help (help_text % vars ())
     elif o == '-n' or o == '--name':
         name = a
     elif o == '-t' or o == '--title':
         title = a
+    elif o == '-a' or o == '--author':
+        author = a
     elif o == '-f' or o == '--fragment-options':
         fragment_options = a
     elif o == '--template':