lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] bib2html: set TEXMFOUTPUT to the tempdir.


From: Patrick McCarty
Subject: Re: [PATCH] bib2html: set TEXMFOUTPUT to the tempdir.
Date: Fri, 5 Feb 2010 01:46:54 -0800
User-agent: Mutt/1.5.20 (2009-06-14)

On 2010-02-04, Patrick McCarty wrote:
> 2010/2/2 John Mandereau <address@hidden>:
> > 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]