Mercurial > hg > Applications > mh
view support/general/bootmhn.findit @ 12:441a2190cfae
Lion fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 21 Apr 2012 13:10:49 +0900 |
parents | bce86c4163a3 |
children |
line wrap: on
line source
#! /bin/sh # '$Id: bootmhn.findit,v 1.1.1.1 2005/04/18 14:46:06 kono Exp $' 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"