From the Kpathsea manual:
http://www.chemie.fu-berlin.de/chemnet/use/info/kpathsea/kpathsea_4.html
"
A search path can come from many sources. In priority order (meaning
Kpathsea will use whichever it finds first):
1. A user-set environment variable, e.g., `TEXINPUTS'.
2. A program-specific configuration file, e.g., an `S /a:/b' line
in Dvips' `config.ps'.
3. A line in a Kpathsea configuration file `texmf.cnf', e.g.,
`TEXINPUTS=/c:/d'. See section below.
4. The compile-time default (specified in `kpathsea/paths.h').
...
If the highest-priority search path (in the list in the previous
section) contains an extra colon (i.e., leading, trailing, or
doubled), Kpathsea inserts the next-highest-priority search path that
is set at that point.
...
For example, given
setenv TEXINPUTS /home/karl:
and a `TEXINPUTS' value from `texmf.cnf' of
.:$TEXMF//tex
then the final value used for searching will be:
/home/karl:.:$TEXMF//tex
LATEX=pdflatex
PRETEX="\documentclass{article}"
LATEX_OPTIONS=""
-MY_TEXINPUTS=""
-DEFAULT_TEXINPUTS=$(kpsewhich -show-path .tex)
+TEXINPUTS=""
# process options
while [ "$1" != "--" ] && [ -n "$1" ]; do
if [ "${1:0:12}" == "--texinputs=" ]; then
- MY_TEXINPUTS="${1:12}"
+ TEXINPUTS="${1:12}"
elif [ "${1:0:9}" == "--pretex=" ]; then
PRETEX="${1:9}"
else
for file in $*; do
echo "Process '$file' with '$LATEX_OPTIONS'"
- echo "Searching $MY_TEXINPUTS:$DEFAULT_TEXINPUTS"
- TEXINPUTS="$MY_TEXINPUTS:$DEFAULT_TEXINPUTS" \
+ echo "Searching $TEXINPUTS"
+ TEXINPUTS="$TEXINPUTS:" \
$LATEX -shell-escape -jobname="${file}-comp" -interaction=batchmode \
$LATEX_OPTIONS \
"$PRETEX \usepackage{asyprocess}\ProcessAsy \begin{document}\ShowAsy \end{document}" || exit 1
ASYPROCESS = ../asy/asyprocess \
- --texinputs=../.. \
+ --texinputs=../..: \
--pretex='\documentclass{drexel-thesis} \input{packages}' \
--
ASYPROCESS = ../asy/asyprocess \
- --texinputs=../.. \
+ --texinputs=../..: \
--pretex='\documentclass{drexel-thesis} \input{packages}' \
--
ASYPROCESS = ../asy/asyprocess \
- --texinputs=../.. \
+ --texinputs=../..: \
--pretex='\documentclass{drexel-thesis} \input{packages}' \
--
ASYPROCESS = ../asy/asyprocess \
- --texinputs=../.. \
+ --texinputs=../..: \
--pretex='\documentclass{drexel-thesis} \input{packages}' \
--