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: |
320b2cf1ceea5fe3b51f0dd003e5af6f |
User & Date: | gawthrop@users.sourceforge.net on 1997-05-01 08:25:31 |
Other Links: | branch diff | manifest | tags |
Context
1997-05-01
| ||
08:35:18 | # is now the comment symbol in the .txt file check-in: 7e9f611d4d user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
08:25:31 | Initial revision check-in: 320b2cf1ce user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
08:24:38 | Now uses # as the comment symbol in the .txt file check-in: edcac330db user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Added mttroot/mtt/bin/trans/numpar_txt2c version [677e6eb148].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 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 | #! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### # Bourne shell script: numpar_txt2c # Numerical parameters to c format # P.J.Gawthrop May 1997 # Copyright (c) P.J.Gawthrop, 1997. c############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ############################################################### # Inform user echo "Creating $1_numpar.c" rm -f mtt_error #Write some file headers echo '/*' > $1_numpar.c echo "Parameter file for system $1 ($1_numpar.c)" >> $1_numpar.c echo "This file provides the system numerical parameters in c form" >> $1_numpar.c echo "Generated by MTT at `date`" >> $1_numpar.c echo '*/' >> $1_numpar.c echo >> $1_numpar.c cat $MTTPATH/trans/rcs_header.c >> $1_numpar.c echo >> $1_numpar.c echo "#include \"$1_sympar.c\"" >> $1_numpar.c echo "$1_numpar()" >> $1_numpar.c echo '{' >> $1_numpar.c #Write out the variables in c format. awk -F# '{ if (NF<2) print $1 if (NF>1) print $1 "/* " $2 " */" }' $1_numpar.txt >> $1_numpar.c echo '}' >> $1_numpar.c |