[Omake] LaTeX bug with BIBINPUTS.
Geoffrey Alan Washburn
geoffw at cis.upenn.edu
Wed Jul 5 08:28:26 PDT 2006
I just noticed that if I do the following:
TEXINPUTS[]=
$(dir .)
$(dir ./support)
$(TEXINPUTS)
BIBINPUTS[]=
$(dir .)
$(dir ./bib)
When running LaTeX OMake will set TEXINPUTS and BIBINPUTS to be the same
as TEXINPUTS, throwing away my BIBINPUTS definition.
Looking at build/LaTeX.om the problem seems to be
#
# Setting the proper TEXINPUTS environment
#
INPUTS = $(concat $(PATHSEP), $(TEXINPUTS))$(PATHSEP)
setenv(TEXINPUTS, $(INPUTS))
setenv(BIBINPUTS, $(INPUTS))
It should probably be
#
# Setting the proper TEXINPUTS environment
#
INPUTS = $(concat $(PATHSEP), $(TEXINPUTS))$(concat $(PATHSEP), \
$(BIBINPUTS))$(PATHSEP)
setenv(TEXINPUTS, $(INPUTS))
setenv(BIBINPUTS, $(INPUTS))
If one wants to be pedantic this might still be bad, because combining
TEXINPUTS and BIBINPUTS could hypothetically resolve files incorrectly.
But it fixes my problem for the moment and is in the spirit of the
original "design".
More information about the Omake
mailing list