home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari FTP
/
ATARI_FTP_0693.zip
/
ATARI_FTP_0693
/
Tex
/
Dvi
/
dvipsbin.zoo
/
contrib
/
whichinp.at
< prev
Wrap
Text File
|
1991-01-26
|
309b
|
14 lines
#!/bin/sh
#
# Useful with the backtick execution special; helps to find PostScript
# files on TEXINPUTS. Contributed by S. P. Q. Rahtz.
#
pathList=`echo ${TEXINPUTS:=.:/usr/local/tex/inputs} | tr ':' ' '`
theFile=$1
for p in $pathList
do
test -f $p/$theFile && { echo $p/$theFile; exit 0; }
done
exit 1