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: 70d4b27beb3841390a3136a6c423843ed63a93df4f1b4f374a82c79e94ce3e14
User & Date: gawthrop@users.sourceforge.net on 2000-10-13 11:07:07
Other Links: branch diff | manifest | tags
Context
2000-10-13
11:07:33
Started conversion to new style state, input ext check-in: e5d69b7dc8 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
11:07:07
Initial revision check-in: 70d4b27beb user: gawthrop@users.sourceforge.net tags: origin/master, trunk
11:07:00
Added initialisation for state and input check-in: 970870f93a user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Added mttroot/mtt/bin/trans/mtt_name2array version [6bb9df96f5].



















































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
57
#! /bin/sh

     ###################################### 
     ##### Model Transformation Tools #####
     ######################################

# Bourne shell script: mtt_name2array

# Generates array elements from names
# Copyright (C) 2000 by Peter J. Gawthrop


case $2 in
    numpar)
        name=mttpar
	cat $1_sympar.txt>mtt_infile
	;;
    state)
        name=mttx
        cat $1_struc.txt |\
        grep $2 |\
	awk '{printf("%s\n", $4)}'>mtt_infile
	;;
    input)
        name=mttu
        cat $1_struc.txt |\
        grep $2 |\
	awk '{printf("%s\n", $4)}'>mtt_infile
	;;
    *)
	echo Repesentation $2 not supported
esac

case $3 in
    zero)
	  strip_comments <mtt_infile | grep "$filter"  |\
          awk '{
          i++; printf(" %s = 0.0;\n", tolower($1));
          }'
	;;
    set)
	  strip_comments <mtt_infile  |\
         awk '{
           i++; printf("%s(%i)\t= %s;\n", name, i, tolower($1));
         }' name=$name
        ;;
    *)
         strip_comments <mtt_infile  |\
         awk '{
           i++; printf("  %s \t= %s(%i);\n", tolower($1), name, i);
         }' name=$name
	;;
esac





MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]