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.18 1999/11/14 22:22:17 peterg +# %% Removed checks for implicit - now done at command-line level. +# %% # %% Revision 1.17 1999/11/04 04:54:24 peterg # %% Removed recreation of smx file. # %% # %% Revision 1.16 1999/03/06 02:18:10 peterg # %% Changed argument list. @@ -116,11 +119,11 @@ sympar2global_txt2m $1 >> $1_$2.m ;; esac #Write out the variables in m format. -cat $1_$2.txt |\ +cat $1_$2.txt | grep -v METHOD |\ awk -F# 'BEGIN{ quote = "\047"; doublequote = "\042"; } { @@ -161,9 +164,20 @@ -e 's/x(/mttx(/g' \ -e 's/u(/mttu(/g' \ -e 's/mttmtt/mtt/g' \ -e 's/#/%/g' \ >> $1_$2.m + + +if [ "$2" = "numpar" ]; then + awk '{ + printf(" MTTpar(%i) \t= %s;\n",++i, tolower($1)); + }'< $1_sympar.txt >>$1_numpar.m +fi + + + +