Overview
Comment: | Added the set option Use case in place of if |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
3c86ed7bdaa4e53775c1a9b1dee2c465 |
User & Date: | gawthrop@users.sourceforge.net on 2000-05-19 14:05:39 |
Other Links: | branch diff | manifest | tags |
Context
2000-05-19
| ||
14:19:46 | Added library path for representations check-in: b4088b9779 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
14:05:39 |
Added the set option Use case in place of if check-in: 3c86ed7bda user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
14:05:10 | Zero parameters in the numpar.m file check-in: 89daa0c22f user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/sympar2par_txt2m from [b5d3952873] to [369c7b910c].
1 2 3 4 5 6 7 8 9 10 11 12 | #! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### # Bourne shell script: sympar2par_txt2m # Symbolic parameters parameter conversion # Used in lang_header # Copyright (C) 2000 by Peter J. Gawthrop | > | | | | | > | | | > > > > > > | | < > > | 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 | #! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### # Bourne shell script: sympar2par_txt2m # Symbolic parameters parameter conversion # Used in lang_header # Copyright (C) 2000 by Peter J. Gawthrop case $2 in zero) strip_comments <$1_sympar.txt |\ awk '{ i++; printf(" %s = 0.0;\n", tolower($1)); }' ;; set) strip_comments <$1_sympar.txt |\ awk '{ i++; printf(" mttpar(%i) \t= %s;\n", i, tolower($1)); }' ;; *) strip_comments <$1_sympar.txt |\ awk '{ i++; printf(" %s \t= mttpar(%i);\n", tolower($1), i); }' ;; esac |