home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
dvips583.zip
/
contrib.zip
/
dvips
/
contrib
/
whichinpath
< prev
Wrap
Text File
|
1998-11-03
|
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