[GRASS5] README.ipc
Justin Hickey
jhickey at hpcc.nectec.or.th
Mon Jan 29 20:43:51 EST 2001
Hi Huidae and Malcolm
Malcolm Blue wrote:
> I have used the following lines in my version of README.ipc to test:
>
>
> #which gmake5 > /dev/null 2>&1
> GRASS_BIN=`grep "^GRASS_BIN" Makefile | awk -F '=' '{print
> $2}i' | tr -d ' '`
> if [ ! -d $GRASS_BIN -o ! -f $GRASS_BIN/gmake5 ]
> then
> echo
> echo "gmake5 is not in '$GRASS_BIN'."
> echo
> exit
> fi
Or you could use the following bit of script taken from Init.sh that
performs the same function as "which"
for i in `echo $PATH | sed 's/^:/.:/
s/::/:.:/g
s/:$/:./
s/:/ /g'`
do
if [ -f $i/$GRASS_WISH ] ; then
WISH=$GRASS_WISH
break
fi
done
Just another option.
--
Sincerely,
Jazzman (a.k.a. Justin Hickey) e-mail: jhickey at hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand
==================================================================
People who think they know everything are very irritating to those
of us who do. ---Anonymous
Jazz and Trek Rule!!!
==================================================================
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'
More information about the grass-dev
mailing list