error exit when compilation fails

This commit is contained in:
ceriel 1987-01-30 18:12:57 +00:00
parent 9390536d79
commit 076354168e
2 changed files with 8 additions and 4 deletions

View file

@ -1,2 +1,4 @@
${MACH?} -I../../../h ${MACHFL?} $1 1>&2
echo `basename $1 $2`.s
if ${MACH?} -I../../../h ${MACHFL?} $1 1>&2
then echo `basename $1 $2`.s
else exit 1
fi

View file

@ -1,2 +1,4 @@
${MACH?} -I../../../h ${MACHFL?} $1 1>&2
echo `basename $1 $2`.s
if ${MACH?} -I../../../h ${MACHFL?} $1 1>&2
then echo `basename $1 $2`.s
else exit 1
fi