SQLITE_NOTICE(283): recovered 5 frames from WAL file /data/mtt.fossil-wal
File mttroot/mtt/bin/trans/mtt_error artifact 36e03ad5ab part of check-in fc177d09e6
#! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### # Bourne shell script: mtt_error # Does the error handing for transformations and forces error exit. # P.J.Gawthrop August 1996 # Copyright (c) P.J.Gawthrop, 1996 ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.8 2000/12/28 12:34:49 peterg ## Put under RCS ## ## Revision 1.7 1998/03/06 17:14:09 peterg ## Cospetic change to message ## ## Revision 1.6 1998/03/05 10:17:41 peterg ## Cosmetic change ## ## Revision 1.5 1998/03/05 10:14:37 peterg ## Toned down the error warning message ## ## Revision 1.4 1998/02/26 10:21:51 peterg ## Revised to take account of new (??) wc output - now echos the file ## name (??) ## ## Revision 1.3 1998/02/25 21:35:00 peterg ## Put "" round if argument in case $err_length is null. ## ## Revision 1.2 1996/08/26 09:46:37 peterg ## Changed $() to `` ## # Revision 1.1 1996/08/25 09:20:00 peter # Initial revision # ############################################################### error_file=$1; # Test for errors and print if any err_length=`wc -c <$error_file | gawk '{print $1}'` if [ "$err_length" != "0" ] then echo "INFORMATION: An MTT transformation has generated the following messages" # echo " (which may not be important)" cat $error_file exit 1 else exit 0 fi