xname) SYS="$2"
ACTION='make $PAR'
DIR=.
+ FM=no
FAIL='Failed for $SYS, see $DIR/Out'
SUCC='$SYS -- done'
ATYPE=
;;
xfatal) FATAL=yes ;;
xaction|xindir) case x$ATYPE in
- x) ACTION=$2 ; ATYPE=$1 ;;
+ x) ACTION=$2 ; ATYPE=$1
+ case $ATYPE$FM in
+ indirno) FAIL='Failed for $SYS' ;;
+ esac
+ ;;
*) echo Already specified an $ATYPE for this name
- RETC=-1 ;;
+ RETC=65 ;;
esac ;;
- xfailure) FAIL="$2" ;;
+ xfailure) FM=yes
+ FAIL="$2" ;;
xsuccess) SUCC="$2" ;;
xdir) DIR="$2" ;;
xsystem) case `ack_sys` in
no) continue ;;
esac
case x$SYS in
- x) echo Missing name line; RETC=-1 ;;
+ x) echo Missing name line; RETC=65 ;;
*) if test -d $DIR
then (
cd $DIR
esac
else
echo Directory $DIR for $SYS is inaccessible
- RETC=-2
+ RETC=66
fi ;;
esac
case $FATAL$RETC in
SYS=
;;
*) echo Unknown keyword "$1"
- RETC=-3 ;;
+ RETC=67 ;;
esac
done
+exit $RETC
} <$CMD
RETX=$?
case $RETX in