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: |
80f79ad08bfa5194cec6e86f825cb2e4 |
User & Date: | gawthrop@users.sourceforge.net on 2000-10-11 09:08:20 |
Other Links: | branch diff | manifest | tags |
Context
2000-10-12
| ||
09:17:24 | Makde global - ie allow for right-hand side terms check-in: 644f6421a6 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
2000-10-11
| ||
09:08:20 | Initial revision check-in: 80f79ad08b user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
09:08:08 | cse --> csex check-in: 2ad205431b user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Added mttroot/mtt/bin/trans/sympar_txt2declare version [cca8092d6c].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 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 53 54 55 56 | #! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### # Bourne shell script: sympar_txt2declare # Symbolic parameters to variable declaration # Copyright (C) 2000 by Peter J. Gawthrop ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ############################################################### sys=$1 language=$2 case $language in p) first="VAR"; delim=", "; last=': REAL;'; ;; *) echo Language $language not supported - sorry; exit 1 esac # Start cat<<EOF $first EOF #Write out the variables strip_comments < $sys"_sympar.txt" |\ awk '{ i++; var[i] = tolower($1); } END{ n = i; for (i=1; i<n; i++){ printf("%s%s",var[i], delim); j++; if (j>10){ printf("\n"); j=0; } } printf("%s%s\n",var[n], last); }' "delim=$delim" "last=$last" |