ocaml/config/auto-aux/searchpath

10 lines
155 B
Plaintext
Raw Normal View History

#!/bin/sh
# Find a program in the path
IFS=':'
for dir in $PATH; do
if test -z "$dir"; then dir=.; fi
if test -f $dir/$1; then exit 0; fi
done
exit 1