Overview
Comment:Refined selection of matching patterns - checks for exact match.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 9b7ef81b4b1a6e3dc52ce34bd5ab7efb2af0d689f4af9fc435d2783846af266d
User & Date: geraint@users.sourceforge.net on 2001-04-28 03:38:36
Other Links: branch diff | manifest | tags
Context
2001-04-30
03:02:52
Stripped template stuff. check-in: 100c579558 user: geraint@users.sourceforge.net tags: origin/master, trunk
2001-04-28
03:38:36
Refined selection of matching patterns - checks for exact match. check-in: 9b7ef81b4b user: geraint@users.sourceforge.net tags: origin/master, trunk
03:15:03
Fixed comment (interfered with "mtt help representations"). check-in: 9803ab154d user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/mtt2reps_txt from [07dbcc4a3d] to [09ec17ae5f].

1
2
3
4
5
6
7
8
9
10
11



12
13
14
15
16
17
18
#! /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$



## Revision 1.9  2000/04/05 08:34:30  peterg
## removed output tab
##
## Revision 1.8  2000/04/05 08:04:01  peterg
## Minor reorganisation
##
## Revision 1.7  2000/04/04 16:15:14  peterg











>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /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$
## Revision 1.10  2000/09/14 07:54:13  peterg
## Removed -e option in echo
##
## Revision 1.9  2000/04/05 08:34:30  peterg
## removed output tab
##
## Revision 1.8  2000/04/05 08:04:01  peterg
## Minor reorganisation
##
## Revision 1.7  2000/04/04 16:15:14  peterg
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
###############################################################

sep='|'; # Separates the languages from the rest.
representations=`grep '#SUMMARY' $MTTPATH/mtt | awk '{print $2'} | sort -u `

for rep in $representations ; do
    ## Title should be same for all languages -- but extract the first non-empty version
      title=`grep '#SUMMARY' $MTTPATH/mtt | tr '\t' ' ' | grep "$rep[ *]" | \
      awk  '{if (NF>2) {for (i=3;i<NF-1;i++) printf("%s ",$i); NF1=NF-1; printf("%s\n",$NF1)}}' |\
      head -1`
      

    language=`grep '#SUMMARY' $MTTPATH/mtt |\
      awk '
        {







|







46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
###############################################################

sep='|'; # Separates the languages from the rest.
representations=`grep '#SUMMARY' $MTTPATH/mtt | awk '{print $2'} | sort -u `

for rep in $representations ; do
    ## Title should be same for all languages -- but extract the first non-empty version
      title=`grep '#SUMMARY' $MTTPATH/mtt | tr '\t' ' ' | grep "[ *]$rep[ *]" | \
      awk  '{if (NF>2) {for (i=3;i<NF-1;i++) printf("%s ",$i); NF1=NF-1; printf("%s\n",$NF1)}}' |\
      head -1`
      

    language=`grep '#SUMMARY' $MTTPATH/mtt |\
      awk '
        {


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