463 |
tail make.log |
tail make.log |
464 |
echo failed 1>&2 |
echo failed 1>&2 |
465 |
cp make.log $CDIR"/make.log" |
cp make.log $CDIR"/make.log" |
466 |
|
rm -f $EXECUTABLE |
467 |
return 1 |
return 1 |
468 |
else |
else |
469 |
echo successful 1>&2 |
echo successful 1>&2 |
631 |
ENDVAL=`cat $RUNLOG | grep -v 'ABNORMAL END' | grep -c 'NORMAL END'` |
ENDVAL=`cat $RUNLOG | grep -v 'ABNORMAL END' | grep -c 'NORMAL END'` |
632 |
fi |
fi |
633 |
rm -f run.log_tmp |
rm -f run.log_tmp |
|
#if test "x$RETVAL" = x0 ; then |
|
634 |
if [ $RETVAL -eq 0 -a $ENDVAL -gt 0 ] ; then |
if [ $RETVAL -eq 0 -a $ENDVAL -gt 0 ] ; then |
635 |
tail $RUNLOG |
tail $RUNLOG |
636 |
echo successful 1>&2 |
echo successful 1>&2 |
638 |
#cp $OUTPUTFILE $CDIR"/"$OUTPUTFILE |
#cp $OUTPUTFILE $CDIR"/"$OUTPUTFILE |
639 |
if test -s STDERR.0000 ; then cp STDERR.0000 $CDIR"/STDERR.0000" ; fi |
if test -s STDERR.0000 ; then cp STDERR.0000 $CDIR"/STDERR.0000" ; fi |
640 |
return 0 |
return 0 |
641 |
|
elif [ $RETVAL -ne 0 -a $ENDVAL -gt 0 ] ; then |
642 |
|
#-- for some weird cases (run is finihed but with error code) |
643 |
|
tail $RUNLOG |
644 |
|
echo finished with error '(run:' $RETVAL ' end:' $ENDVAL ')' 1>&2 |
645 |
|
return 0 |
646 |
else |
else |
647 |
tail $RUNLOG |
tail $RUNLOG |
648 |
echo failed '(run:' $RETVAL ' end:' $ENDVAL ')' 1>&2 |
echo failed '(run:' $RETVAL ' end:' $ENDVAL ')' 1>&2 |