Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / support / general / RCS / bootmhn.findit,v
1 head    1.2;
2 access;
3 symbols;
4 locks; strict;
5 comment @# @;
6
7
8 1.2
9 date    92.11.02.21.58.59;      author jromine; state Exp;
10 branches;
11 next    1.1;
12
13 1.1
14 date    92.10.26.16.40.51;      author jromine; state Exp;
15 branches;
16 next    ;
17
18
19 desc
20 @@
21
22
23 1.2
24 log
25 @use [ -f ...] instead of -x/-c since those options aren't present everywhere
26 @
27 text
28 @: run this script through /bin/sh
29 : '$Id: bootmhn.findit,v 1.1 1992/10/26 16:40:51 jromine Exp jromine $'
30
31 if [ -z "$1" -o -z "$2" ]; then
32     echo "usage: bootmhn.findit program library" 1>&2
33     exit 1
34 fi
35
36 PGM= DIR= oIFS="$IFS" IFS=":"
37 for A in $PATH $2 /usr/demo/SOUND; do
38     if [ "$A" = "." ]; then
39         continue
40     fi
41     if [ -f "$A/$1" ]; then
42         if [ "$A" = "/usr/local/bin" ]; then
43             PGM="$1" DIR=""
44         else
45             PGM="$A/$1" DIR="$A/"
46         fi
47
48         echo "$PGM"
49         exit 0
50     fi
51 done
52 IFS="$oIFS"
53
54 @
55
56
57 1.1
58 log
59 @Initial revision
60 @
61 text
62 @d2 1
63 a2 1
64 : '$Id$'
65 d14 1
66 a14 1
67     if [ -x "$A/$1" ]; then
68 @