]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/ly2dvi.py
* Documentation/user/invoking.itexi (Invoking the lilypond
[lilypond.git] / scripts / ly2dvi.py
index d8133ee21427e244d5a27b0cf500e974d3113b9f..dc3725b11700494696dd73f0eb48df99edfee554 100644 (file)
@@ -95,6 +95,7 @@ if os.environ.has_key ('LILYPONDPREFIX') :
        while datadir[-1] == os.sep:
                datadir= datadir[:-1]
 
+
 sys.path.insert (0, os.path.join (datadir, 'python'))
 
 # Customize these
@@ -106,6 +107,7 @@ global re;re = ly.re
 
 # lilylib globals
 program_name = 'ly2dvi'
+program_version = '@TOPLEVEL_VERSION@'
 verbose_p = 0
 pseudo_filter_p = 0
 original_dir = os.getcwd ()
@@ -262,7 +264,7 @@ def run_lilypond (files, dep_prefix):
 
        if debug_p:
                ly.print_environment ()
-
+               
        cmd = string.join ((lilypond_binary, opts, fs))
        status = ly.system (cmd, ignore_error = 1, progress_p = 1)
        signal = 0x0f & status
@@ -779,6 +781,8 @@ if not files:
 
 if 1:
        ly.identify (sys.stderr)
+       ly.lilypond_version_check (lilypond_binary, '@TOPLEVEL_VERSION@')
+       
        original_output = output_name
        
        # Ugh, maybe make a setup () function