Differences From Artifact [c570eec722]:

To Artifact [92fe21cdaa]:


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.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 (??)
##







>
>
>







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.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 (??)
##
34
35
36
37
38
39
40
41
42
43
44
45
46
47

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







|
|





37
38
39
40
41
42
43
44
45
46
47
48
49
50

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

MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]