]> git.donarmstrong.com Git - lilypond.git/blobdiff - buildscripts/bib2html.py
* lily/tie-formatting-problem.cc (score_configuration): use
[lilypond.git] / buildscripts / bib2html.py
index 37bc4694fd35455014b39cfdbe9f17db8bc19241..01b893b9b7b82427398c2eae1afedf597038ec5f 100644 (file)
@@ -9,7 +9,7 @@ import string
 def usage ():
     print 'usage: %s [-s style] [-o <outfile>] BIBFILES...';
 
-
+#print os.environ['BSTINPUTS']
 
 (options, files) = getopt.getopt(sys.argv[1:], 's:o:', [])
 
@@ -58,12 +58,14 @@ open(tempfile + '.aux', 'w').write (r'''
 cmd = "bibtex %s" % tempfile;
 
 sys.stdout.write ("Invoking `%s'\n" % cmd)
-os.system (cmd) 
+stat = os.system (cmd)
+if stat <> 0:
+    sys.exit(1)
 
 
 #TODO: do tex -> html on output 
 
-bbl =open (tempfile + '.bbl').read ()
+bbl = open (tempfile + '.bbl').read ()
 
 open (output, 'w').write  (bbl)