X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Flilypond-book.py;h=ac3969c9cc27335d69feae420d47b8d249bdb112;hb=a6bd229f7fe1dc4a03478e14ccc0c0c66b225061;hp=5dd263b6ac10bae988aa2ef86634c4749f2b4994;hpb=517232e480cb704984b5da2ce219b83a29422083;p=lilypond.git diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 5dd263b6ac..ac3969c9cc 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -126,7 +126,7 @@ def warranty (): %s %s -''' % ( _ ('Copyright (c) %s by') % '2001--2009', +''' % ( _ ('Copyright (c) %s by') % '2001--2010', '\n '.join (authors), _ ("Distributed under terms of the GNU General Public License."), _ ("It comes with NO WARRANTY."))) @@ -164,7 +164,8 @@ def get_option_parser (): default='') p.add_option ('--latex-program', - help=_ ("run executable PROG instead of latex"), + help=_ ("run executable PROG instead of latex, or in\n\ +case --pdf option is set instead of pdflatex"), metavar=_ ("PROG"), action='store', dest='latex_program', default='latex') @@ -2150,6 +2151,8 @@ def main (): global_options.process_cmd += ' --formats=eps ' if global_options.create_pdf: global_options.process_cmd += "--pdf -dinclude-eps-fonts -dgs-load-fonts " + if global_options.latex_program == 'latex': + global_options.latex_program = 'pdflatex' if global_options.verbose: global_options.process_cmd += " --verbose "