Differences From Artifact [77f608f79b]:

To Artifact [8892b22156]:


9
10
11
12
13
14
15
16

17
18

19
20
21
22
23

24

25
26
27
28
29
30
31
9
10
11
12
13
14
15

16
17

18
19
20
21
22
23
24

25
26
27
28
29
30
31
32







-
+

-
+





+
-
+







# Label file to symbolic parameters conversion
# Copyright (C) 2000 by Peter J. Gawthrop

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

# Separation characters
SEPS='=*;+/()-'
SEPS='=*;+/()-^'
# Replace by ,
REPS=',,,,,,,,'
REPS=',,,,,,,,,'

SystemName=$2
UseLabelFile=$3

if [ -n "$UseLabelFile" ]; then ## Take input from lbl.txt
     strip_comments < $1_lbl.txt | tr $SEPS $REPS |\
     strip_comments < $1_lbl.txt | awk '{printf("%s %s \"%s\",\n",$1,$2,$3)}' > mtt_stripped_file
     awk '{printf("%s %s \"%s\",\n",$1,$2,$3)}' > mtt_stripped_file
else ## Take input from _abg.m
     cat $1_abg.m | grep "arg =" | tr $SEPS $REPS > mtt_stripped_file
fi
rm -f mtt_error
# This is the main transformation using gawk
cat mtt_stripped_file | \
awk '

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