Index: mttroot/mtt/bin/trans/txt2m ================================================================== --- mttroot/mtt/bin/trans/txt2m +++ mttroot/mtt/bin/trans/txt2m @@ -13,10 +13,13 @@ # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% Version control history # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% $Id$ # %% $Log$ +# %% Revision 1.3 1998/07/25 20:40:35 peterg +# %% All vars in lower case now +# %% # %% Revision 1.2 1998/07/25 09:48:31 peterg # %% Tidied up for Pascal version # %% # %% Revision 1.1 1998/02/25 22:10:25 peterg # %% Initial revision @@ -53,10 +56,12 @@ #Write out the variables in m format. awk -F# '{ if (NF<2) print $1 if (NF>1) print $1 "# " $2 }' $1_$2.txt | \ -sed 's/{//' | sed 's/}/end/' >> $1_$2.m +sed 's/\[\([0-9]*\)\]/(\1)/g' |\ +sed 's/x(/mttx(/g' | sed 's/u(/mttu(/g' |\ +sed 's/mttmtt/mtt/g' >> $1_$2.m