Overview
Comment: | Added WMIN etc |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
193d680978e1cd61e0b2e53d8fed796b |
User & Date: | gawthrop@users.sourceforge.net on 1998-07-27 18:59:11 |
Other Links: | branch diff | manifest | tags |
Context
1998-07-27
| ||
20:19:33 | Stopped it trying to fix its own causality. check-in: 3245ee9a06 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
18:59:11 | Added WMIN etc check-in: 193d680978 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
18:49:09 | Fixed the frequency stuff check-in: 3d3729562e user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/txt2m from [a3d5bd2dca] to [9bedd963a9].
︙ | ︙ | |||
11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% Version control history # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% $Id$ # %% $Log$ # %% Revision 1.4 1998/07/26 09:50:12 peterg # %% More forgiving of txt sytax. # %% # %% -- can use () or () # %% -- can use mttx() or x() # %% -- can use mttu() or u() # %% | > > > | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% Version control history # %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # %% $Id$ # %% $Log$ # %% Revision 1.5 1998/07/26 11:54:20 peterg # %% Added mtt to variables # %% # %% Revision 1.4 1998/07/26 09:50:12 peterg # %% More forgiving of txt sytax. # %% # %% -- can use () or () # %% -- can use mttx() or x() # %% -- can use mttu() or u() # %% |
︙ | ︙ | |||
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | echo "function $name = $1_$2$arg" > $1_$2.m echo "%% $2 file ($1_$2.m)" >> $1_$2.m echo "%% Generated by MTT at `date`" >> $1_$2.m echo "% Global variable list" >> $1_$2.m sympar2global_txt2m $1 >> $1_$2.m else echo "% Script file $1_$2.m" > $1_$2.m fi #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/\[\([0-9]*\)\]/(\1)/g' |\ sed 's/LAST/mttLAST/g' |\ sed 's/DT/mttDT/g' |\ sed 's/STEPFACTOR/mttSTEPFACTOR/g' |\ sed 's/METHOD/mttMETHOD/g' |\ sed 's/x(/mttx(/g' | sed 's/u(/mttu(/g' |\ sed 's/mttmtt/mtt/g' >> $1_$2.m | > > > > > > > | 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | echo "function $name = $1_$2$arg" > $1_$2.m echo "%% $2 file ($1_$2.m)" >> $1_$2.m echo "%% Generated by MTT at `date`" >> $1_$2.m echo "% Global variable list" >> $1_$2.m sympar2global_txt2m $1 >> $1_$2.m else echo "% Script file $1_$2.m" > $1_$2.m echo '% Dummy globals' >> $1_$2.m echo 'global ...' >> $1_$2.m echo 'mtt_dummy_global;' >> $1_$2.m fi #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/\[\([0-9]*\)\]/(\1)/g' |\ sed 's/\([^a-zA-Z]\)t\([^a-zA-Z]\)/\1mttt\2/g' |\ sed 's/LAST/mttLAST/g' |\ sed 's/DT/mttDT/g' |\ sed 's/STEPFACTOR/mttSTEPFACTOR/g' |\ sed 's/METHOD/mttMETHOD/g' |\ sed 's/WMIN/mttWMIN/g' |\ sed 's/WMAX/mttWMAX/g' |\ sed 's/WSTEPS/mttWSTEPS/g' |\ sed 's/x(/mttx(/g' | sed 's/u(/mttu(/g' |\ sed 's/mttmtt/mtt/g' >> $1_$2.m |