Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4:Update
lilypond
lilypond-bib2html.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lilypond-bib2html.patch of Package lilypond
index c16f21c..8434cbf 100644 (file) Index: scripts/build/bib2html.py =================================================================== --- scripts/build/bib2html.py.orig 2010-01-12 18:20:49.000000000 +0200 +++ scripts/build/bib2html.py 2010-12-10 21:38:44.000000000 +0200 @@ -28,8 +28,6 @@ for (o,a) in options: if style not in ['alpha','index','long','longp','long-pario','short','short-pario','split']: sys.stderr.write ("Unknown style \`%s'\n" % style) -tempfile = tempfile.mktemp ('bib2html') - if not files: usage () sys.exit (2) @@ -47,13 +45,17 @@ for f in files: files = ','.join (nf) -open (tempfile + '.aux', 'w').write (r''' +tmpfile = tempfile.mkstemp ('bib2html')[1] + +open (tmpfile + '.aux', 'w').write (r''' \relax \citation{*} \bibstyle{html-%(style)s} \bibdata{%(files)s}''' % vars ()) -cmd = "bibtex %s" % tempfile +tmpdir = tempfile.gettempdir () + +cmd = "TEXMFOUTPUT=%s bibtex %s" % (tmpdir, tmpfile) sys.stdout.write ("Invoking `%s'\n" % cmd) stat = os.system (cmd) @@ -63,14 +65,14 @@ if stat <> 0: #TODO: do tex -> html on output -bbl = open (tempfile + '.bbl').read () +bbl = open (tmpfile + '.bbl').read () open (output, 'w').write (bbl) -def cleanup (tempfile): +def cleanup (tmpfile): for a in ['aux','bbl', 'blg']: - os.unlink (tempfile + '.' + a) + os.unlink (tmpfile + '.' + a) -cleanup (tempfile) +cleanup (tmpfile)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor