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: 8a94cbbbc0ddef2a6a2f80f8483da985de39793000a8d580d519284a8fb9c4a2
User & Date: gawthrop@users.sourceforge.net on 1998-10-20 08:15:17
Other Links: branch diff | manifest | tags
Context
1998-10-20
09:00:43
Added a few summary lines - to help with xmtt check-in: 37fb2a9f8d user: gawthrop@users.sourceforge.net tags: origin/master, trunk
08:15:17
Initial revision check-in: 8a94cbbbc0 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1998-10-05
10:46:15
Commented out redundant MTTY := MTTY + MTTEyx*MTTEdX; check-in: 7e8c595c2b user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Added mttroot/mtt/bin/trans/mtt2reps_txt version [62d6cafcc3].



























































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

# mtt2reps_txt: Gives a tabular listing of representations and languages
# P J Gawthrop July 1998, October 1998
# Copyright (c) P.J.Gawthrop, 1998

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


representations=`mtt -q help representations | awk '{print $1'} | sort -u | grep -v 'Representations'`

for rep in $representations ; do
    language=`mtt -q help representations | grep "^[ ]*$rep" |\
      awk '{print $NF}'|  grep -v 'Representations' |\
      sort -u | sed 's/[()]//g'`
    echo $rep $language |\
       awk '{
         printf( "%s", $1)
         for (i=2;i<=NF;i++) printf("\t%s", $i); 
         printf("\n")
       }'

done

Added mttroot/mtt/bin/trans/reps_txt2tk version [cedff4e4d3].































































































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

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

# Bourne shell script: reps_txt2tk
# Creates tk/tcl file for xmtt.
# Copyright (c) P.J.Gawthrop, 1998

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

name=`mtt --version`

cat<<EOF
# The top level menu
menubutton .mtt -text "$name" -menu .mtt.sys
pack .mtt

menu .mtt.sys
.mtt.sys add cascade -label "NewSystem" -menu .mtt.sys.rep
.mtt.sys add cascade -label "sys1" -menu .mtt.sys.rep
.mtt.sys add cascade -label "sys2" -menu .mtt.sys.rep
.mtt.sys add separator
.mtt.sys add command -label "Exit" -command "exit"
EOF

# Create other menus from the reps.txt file
cat<<EOF
menu .mtt.sys.rep
EOF
awk '{
 printf("\n# Menus for representation %s\n", $1)
 printf(".mtt.sys.rep add  cascade -label \"%s\" -menu .mtt.sys.rep.%s\n", $1, $1);
 printf("menu .mtt.sys.rep.%s\n", $1);
 for (i=2;i<=NF;i++) {
    printf(".mtt.sys.rep.%s add  command -label  \"%s\" ", $1, $i);
    printf(" -command  \"exec mtt sys %s %s \" \n",  $1, $i); 
 }
}' 


Added mttroot/mtt/bin/xmtt version [b1ab2d35df].















































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh

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

# Bourne shell script: xmtt
#
# x-window version of MTT

# Copyright (c) P.J.Gawthrop, 1998

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

# Create the menu structure and pipe into wish
reps_txt2tk < $MTTPATH/REPS | wish -name xmtt



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