def set_file (self, file):
self._file = file
- def dump_version (self):
- self.print_verbatim ('\\version "2.19.15"')
+ def dump_version (self, version):
+ self.print_verbatim ('\\version "' + version + '"')
self.newline ()
def get_indent (self):
action="help",
help=_("show this help and exit"))
- p.version = ('''%prog (LilyPond) @TOPLEVEL_VERSION@\n\n'''
+ p.version = ('%prog (LilyPond) ' + lilypond_version + '\n\n'
+
_ ("""Copyright (c) 2005--2015 by
Han-Wen Nienhuys <hanwen@xs4all.nl>,
# \n\t\t\t\t\\override StringNumber #\'stencil = ##f
def print_ly_preamble(printer, filename):
- printer.dump_version()
+ printer.dump_version(lilypond_version)
printer.print_verbatim('% automatically converted by philomelos musicxml2ly v0.2.41\n')
printer.newline()
printer.dump(r'\pointAndClickOff')
def main():
+ global lilypond_version
+ lilypond_version = "@TOPLEVEL_VERSION@"
opt_parser = option_parser()
global options