Index: mttroot/mtt/bin/trans/numpar_txt2m ================================================================== --- mttroot/mtt/bin/trans/numpar_txt2m +++ mttroot/mtt/bin/trans/numpar_txt2m @@ -12,31 +12,35 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +# Revision 1.2 1997/05/01 08:24:38 peterg +# Now uses # as the comment symbol in the .txt file +# # Revision 1.1 1997/05/01 07:45:17 peterg # Initial revision # ############################################################### # Inform user echo Creating $1_numpar.m #Create the numpar file complete with headers. -echo "%% Numerical parameter file ($1_numpar.m)" > $1_numpar.m -echo "%% Generated by MTT at `date`" >> $1_numpar.m +echo "## Numerical parameter file ($1_numpar.m)" > $1_numpar.m +echo "## Generated by MTT at `date`" >> $1_numpar.m # Global variable list echo >> $1_numpar.m -echo "% Global variable list" >> $1_numpar.m +echo "# Global variable list" >> $1_numpar.m sympar2global_txt2m $1 >> $1_numpar.m #Write out the variables in m format. awk -F# '{ - if (NF<2) print $1 - if (NF>1) print $1 "% " $2 -}' $1_numpar.txt >> $1_numpar.m + if (NF==1) print $1 + if (NF==2) print $1 "# " $2 +}' $1_numpar.txt |\ +sed 's/double/global/' >> $1_numpar.m