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: 082b84d788f259a8cefd17b301a9d01a612eca7bcd78743f0334ec571c0b8438
User & Date: gawthrop@users.sourceforge.net on 1997-05-13 16:58:59
Other Links: branch diff | manifest | tags
Context
1997-05-15
07:10:09
Initial revision check-in: ca6f269f69 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1997-05-13
16:58:59
Initial revision check-in: 082b84d788 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
16:58:02
Added -s switch to get mtt to search for (Bond Graph) switches check-in: c730c8ef17 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Added mttroot/mtt/bin/trans/struc2switch_txt version [2f52f4dda1].





















































































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

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

# Bourne shell script: struc2switch_txt

# Structure file - generate a file for switching on states
# P.J.Gawthrop May 1997
# Copyright (c) P.J.Gawthrop, 1997.

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
###############################################################




echo Creating  $1_switch.txt

rm -f $1_switch.txt
# This is the main transformation using gawk
gawk '
{ 
   if ($1=="state") {i++; if ($3=="MTT_Switch")  print $4};
}
' < $1_struc.txt| sort >> $1_switch.txt

echo Creating  $1_switch.eh










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