Mercurial > hg > Applications > mh
view support/general/bootmhn.findit @ 0:bce86c4163a3
Initial revision
author | kono |
---|---|
date | Mon, 18 Apr 2005 23:46:02 +0900 |
parents | |
children | 441a2190cfae |
line wrap: on
line source
#! /bin/sh # '$Id$' if [ -z "$1" -o -z "$2" ]; then echo "usage: bootmhn.findit program library" 1>&2 exit 1 fi PGM= DIR= oIFS="$IFS" IFS=":" for A in $PATH $2 /usr/demo/SOUND; do if [ "$A" = "." ]; then continue fi if [ -f "$A/$1" ]; then if [ "$A" = "/usr/local/bin" ]; then PGM="$1" DIR="" else PGM="$A/$1" DIR="$A/" fi echo "$PGM" exit 0 fi done IFS="$oIFS"