Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / support / general / bootmhn.findit
1 : run this script through /bin/sh
2 : '$Id: bootmhn.findit,v 1.2 1992/11/02 21:58:59 jromine Exp $'
3
4 if [ -z "$1" -o -z "$2" ]; then
5     echo "usage: bootmhn.findit program library" 1>&2
6     exit 1
7 fi
8
9 PGM= DIR= oIFS="$IFS" IFS=":"
10 for A in $PATH $2 /usr/demo/SOUND; do
11     if [ "$A" = "." ]; then
12         continue
13     fi
14     if [ -f "$A/$1" ]; then
15         if [ "$A" = "/usr/local/bin" ]; then
16             PGM="$1" DIR=""
17         else
18             PGM="$A/$1" DIR="$A/"
19         fi
20
21         echo "$PGM"
22         exit 0
23     fi
24 done
25 IFS="$oIFS"
26