On 2010-02-04, Patrick McCarty wrote: > 2010/2/2 John Mandereau <john.mander...@gmail.com>: > > Le mardi 02 février 2010 à 14:40 -0800, Patrick McCarty a écrit : > > > >> Does the patch look okay? > > > > Instead of (or in addition to) messing up with a temporary directory > > that wouldn't be in a directory out* (just like the temporary file the > > current version of this script dirtily creates BTW, right?), I'd > > recommend changing working dir of bibtex, i.e. > > > > out_dir = os.path.dirname (output) > > open (os.path.join (out_dir, tmpfile + '.aux'), 'w').write (r''' > > > > [snip] > > > > cmd = 'cd %s && bibtex %s' % (out_dir, tmpfile) > > > > not including other adjustments w.r.t. out_dir. Another solution is > > setting bib2html working dir to outdir in makefile command line. > > The problem is that "tmpfile" is an absolute filename created in a > *temporary directory*. On my system, these files are created under > /tmp. > > I think the best solution would be to change the working directory > in the makefile, as you suggested, and not use the tempfile module > at all. That way, we can avoid setting TEXMFOUTPUT or setting > `openout_any=a'. > > This is what I'm thinking:
Oops, early send. Here's the actual list of steps: - Change the current working directory to the outdir - Create the .aux file - Invoke `bibtex' on the .aux file - Read the .bbl file and write it contents to the .html file -Patrick _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel