bib2html find html-long.bst.
* buildscripts/bib2html.py (stat): fail if bibtex fails.
+2004-07-16 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * Documentation/bibliography/SConscript (bibs): failed try to get
+ bib2html find html-long.bst.
+
+ * buildscripts/bib2html.py (stat): fail if bibtex fails.
+
+ * make/stepmake.make: use usescons for using scons.
+
2004-07-16 Jan Nieuwenhuizen <janneke@gnu.org>
* scripts/lilypond-book.py (Lilypond_snippet.is_outdated): Check
# -*-python-*-
+import os
Import ('env')
bibs = env['src_glob'] (env, '*.bib')
env.AT_COPY ('index.html.in')
+# todo: must make html-long.bst as source too.
+env['ENV']['BSTINPUTS'] = ":"+os.getcwd()
+print env.BIB2HTML
map (env.BIB2HTML, bibs)
env.Alias ('doc', bibs)
def usage ():
print 'usage: %s [-s style] [-o <outfile>] BIBFILES...';
-
+print os.environ['BSTINPUTS']
(options, files) = getopt.getopt(sys.argv[1:], 's:o:', [])
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)