2004-06-19 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * scripts/lilypond.py (ic_p.make_include_option): set error_p for
+ single file error.
+
* lily/bar-line.cc (compound_barline): add support for unbroken ||:
2004-06-17 Carl Sorensen (carl_sorensen@byu.edu)
if __main__.verbose_p:
raise _ ('Exiting (%d)...') % i
else:
+ print 'ex thoto' , i
sys.exit (i)
def getopt_args (opts):
if error_log_file:
os.unlink (error_log_file)
- exit (status)
+ exit (1)
if __main__.verbose_p:
progress ('\n')
sys.stderr.write (open (error_log_file).read ())
if error_log_file:
os.unlink (error_log_file)
- exit (status)
+ exit (1)
if error_log_file:
os.unlink (error_log_file)
safe_mode_p = 0
preview_p = 0
page_images_p = 0
+
+# need global variable. sys.exit() raises an exception, which is handled
+# to do cleanups.
lilypond_error_p = 0
html_p = 0
ly.exit (status)
if status:
+ global lilypond_error_p
sys.stderr.write ('\n')
if len (files) == 1:
ly.error (_ ("LilyPond failed on input file %s (exit status %d)") % (files[0], exit_status))
- ly.exit (status)
+ lilypond_error_p = 1
+ ly.exit (1)
else:
ly.error (_ ("LilyPond failed on an input file (exit status %d)") % exit_status)
ly.error (_ ("Continuing..."))
- global lilypond_error_p
lilypond_error_p = 1
### this should only catch lilypond nonzero exit status
### --hwn
-
# TODO: friendly message about LilyPond setup/failing?
#
targets = []