10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Copyright (c) P.J.Gawthrop, 1996
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## 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
|
>
>
>
|
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# 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
|
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Initial revision
#
###############################################################
error_file=$1;
# Test for errors and print if any
err_length=`wc -c <$error_file | awk '{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
|
|
|
|
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# 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
|