-1.4.2.jcn4
+--- ../lilypond-1.4.3.jcn1/CHANGES Thu Jun 14 21:29:50 2001
+++ b/CHANGES Tue Jun 19 12:40:33 2001
+@@ -1,5 +1,12 @@
+-1.4.3.jcn1
+1.4.3.jcn2
+ ==========
+
+* Fixed broken link in website.
+
+* Ly2dvi now leaves .tex and .latex output if latex fails, and cleans
+the temp dir if anything fails.
+
+* Fixes for windows scripts (Raybro Brohinksy).
+
+ * Added -mieee to CFLAGS for alpha.
+ 1.4.2.jcn4
==========
* Windows: bugfix for tex-wrappers, added tex wrapper for dvips.
import __main__
import operator
import tempfile
+import traceback
datadir = '@datadir@'
sys.path.append (datadir + '/python')
original_output = output_name
+
if files and files[0] != '-':
+ # Ugh, maybe make a setup () function
files = map (lambda x: strip_extension (x, '.ly'), files)
(outdir, outbase) = ('','')
os.chdir (tmpdir)
- extra = extra_init
-
if lily_p:
-## try:
+ try:
run_lilypond (files, outbase, dep_prefix)
-## # except:
-## # TODO: friendly message about LilyPond setup/failing?
-## #
-## # TODO: lilypond should fail with different
-## # error codes for:
-## # - guile setup/startup failure
-## # - font setup failure
-## # - init.ly setup failure
-## # - parse error in .ly
-## # - unexpected: assert/core dump
-## # targets = {}
+ except:
+ # TODO: friendly message about LilyPond setup/failing?
+ #
+ # TODO: lilypond should fail with different
+ # error codes for:
+ # - guile setup/startup failure
+ # - font setup failure
+ # - init.ly setup failure
+ # - parse error in .ly
+ # - unexpected: assert/core dump
+ targets = {}
+ traceback.print_exc ()
if targets.has_key ('DVI') or targets.has_key ('PS'):
-# try:
- run_latex (files, outbase, extra)
+ try:
+ run_latex (files, outbase, extra_init)
# unless: add --tex, or --latex?
del targets['TEX']
del targets['LATEX']
-# except Foobar:
-# # TODO: friendly message about TeX/LaTeX setup,
-# # trying to run tex/latex by hand
-# if targets.has_key ('DVI'):
-# del targets['DVI']
-# if targets.has_key ('PS'):
-# del targets['PS']
-
- # TODO: does dvips ever fail?
+ except:
+ # TODO: friendly message about TeX/LaTeX setup,
+ # trying to run tex/latex by hand
+ if targets.has_key ('DVI'):
+ del targets['DVI']
+ if targets.has_key ('PS'):
+ del targets['PS']
+ traceback.print_exc ()
+
if targets.has_key ('PS'):
- run_dvips (outbase, extra)
+ try:
+ run_dvips (outbase, extra_init)
+ except:
+ if targets.has_key ('PS'):
+ del targets['PS']
+ traceback.print_exc ()
# add DEP to targets?
if track_dependencies_p:
if os.path.isfile (depfile):
progress (_ ("dependencies output to `%s'...") % depfile)
+ # Hmm, if this were a function, we could call it the except: clauses
for i in targets.keys ():
ext = string.lower (i)
cp_to_dir ('.*\.%s$' % ext, outdir)
cleanup_temp ()
else:
- # FIXME
+ # FIXME: read from stdin when files[0] = '-'
help ()
errorport.write ("ly2dvi: " + _ ("error: ") + _ ("no files specified on command line.") + '\n')
sys.exit (2)