98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
#}' <$1_input.C |\
#sed 's/\[\([0-9]*\)\]/(\1)/g' >> $1_$2.cc
#Extract the rep code and converting [] to () and deleting mtt variables etc
echo "/* Representation $2 information */" >> $1_$2.cc
awk '{
if ($1=="}") writing=0;
if ( (writing)&&(match($2,"mtt")==0) ) print $0;
if (match($1,"{")==1) writing=1;
}' <$1_$2.C |\
sed 's/\[\([0-9]*\)\]/(\1)/g' >> $1_$2.cc
# Tail
cat >> $1_$2.cc <<EOF
EOF
case "$2" in
|
|
|
>
|
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
#}' <$1_input.C |\
#sed 's/\[\([0-9]*\)\]/(\1)/g' >> $1_$2.cc
#Extract the rep code and converting [] to () and deleting mtt variables etc
echo "/* Representation $2 information */" >> $1_$2.cc
awk '{
if ($1=="}") writing=0;
if ( (writing)&&(match($2,"mtt")!=1) ) print $0;
if (match($1,"{")==1) writing=1;
}' <$1_$2.C |\
sed 's/\[\([0-9]*\)\]/(\1)/g' |\
sed 's/\[\(mmtti\)\]/(\1)/g' >> $1_$2.cc
# Tail
cat >> $1_$2.cc <<EOF
EOF
case "$2" in
|