Debian Codegraph @

texk/dvipsk/contrib/whichinpath

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 #
3 # Useful with the backtick execution special; helps to find PostScript
4 # files on TEXINPUTS. Contributed by S. P. Q. Rahtz.
5 #
6 pathList=`echoscip-shell system . . echo. ${TEXINPUTS:=.:/usr/local/tex/inputs} | trscip-shell system . . tr. ':' ' '`
7 theFile=$1
8
9 for p in $pathList
10 do
11 testscip-shell system . . test. -f $p/$theFile && { echoscip-shell system . . echo. $p/$theFile; exit 0; }
12 done
13 exit 1