Overview
Comment: | Initial revision |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
3321797112d28e89f5eecee2a4203cf2 |
User & Date: | gawthrop@users.sourceforge.net on 1997-03-20 10:25:55 |
Other Links: | branch diff | manifest | tags |
Context
1997-03-20
| ||
12:05:31 | Now just writes out the cr name. check-in: 55bdf75941 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
10:25:55 | Initial revision check-in: 3321797112 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
10:25:41 | Generates a compehensive default params file. check-in: cd9652f1fe user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Added mttroot/mtt/bin/trans/sympar2params_txt2c version [4208fabefb].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | #! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### # Bourne shell script: sympar2params_txt2c # Symbolic parameters to default paramers (c) # P.J.Gawthrop March 1997 # Copyright (c) P.J.Gawthrop, 1997. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ############################################################### # Inform user echo "Creating $1_params.c" rm -f mtt_error #Write some file headers echo '/*' > $1_params.c echo "Parameter file for system $1 ($1_params.c)" >> $1_params.c echo "This file provides the system params for simulation:" >> $1_params.c echo "Generated by MTT at `date`" >> $1_params.c echo "These default parameters should be changed by the user" >> $1_params.c echo '*/' >> $1_params.c echo >> $1_params.c cat $MTTPATH/trans/rcs_header.c >> $1_params.c echo >> $1_params.c echo "#include \"$1_sympar.c\"" >> $1_params.c echo "$1_params()" >> $1_params.c echo '{' >> $1_params.c #Write out the variables in c format. awk '{i++; print $1 " = \t1.0;"}' $1_sympar.txt >> $1_params.c echo '}' >> $1_params.c # Now invoke the standard error handling. # mtt_error mtt_error.txt |