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: |
c3b2147ee1bebf605588d16159ec8c26 |
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: 34967f2efe user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
2000-10-11
| ||
09:08:20 | Initial revision check-in: c3b2147ee1 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
09:08:08 | cse --> csex check-in: 5f75209ddf 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" |