Differences From Artifact [371f9991bf]:

To Artifact [eb46dc4e8c]:


11
12
13
14
15
16
17



18
19
20
21
22
23
24
25
26

27

28
29
30

31
32
33
34
35

36
37
38
39
40
41
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

31
32


33





34




35
36







+
+
+









+
-
+

-
-
+
-
-
-
-
-
+
-
-
-
-


# Copyright (c) P.J.Gawthrop, 1996.

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
# Revision 1.1  1996/08/24  13:34:09  peter
# Initial revision
#
###############################################################


# Inform user
echo "Creating $1_sympar.r"

rm -f mtt_error

# This is the main transformation using gawk
tr ';' ',' <  $1_lbl.txt | \
gawk -f $MTTPATH/lbl2sympar.awk $1_lbl.txt > $1_sympar.r 2>mtt_error
gawk -f $MTTPATH/lbl2sympar.awk  > $1_sympar.r 2>mtt_error.txt

err_length=$(wc -c <mtt_error)

# Now invoke the standard error handling.
# Test for errors and print if any
if [ $err_length != "0" ]
then
  echo lbl2sympar_txt2 $1 failed '...'
  cat mtt_error
mtt_error mtt_error.txt
  exit 1
else
  exit 0
fi



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