Differences From Artifact [68981e0e30]:

To Artifact [03708f745e]:


10
11
12
13
14
15
16



17
18
19
20
21
22
23
# Copyright (c) P.J.Gawthrop 1996

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



## Revision 1.10  1998/05/18 08:35:19  peterg
## Surround arguments to tr with ""
##
## Revision 1.9  1998/03/26 08:23:02  peterg
## Use mixed case Topic for *) part of case sttement
##
## Revision 1.8  1998/03/22 21:13:17  peterg







>
>
>







10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright (c) P.J.Gawthrop 1996

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.11  1998/07/16 20:41:05  peterg
## Now uses new mtt_help
##
## Revision 1.10  1998/05/18 08:35:19  peterg
## Surround arguments to tr with ""
##
## Revision 1.9  1998/03/26 08:23:02  peterg
## Use mixed case Topic for *) part of case sttement
##
## Revision 1.8  1998/03/22 21:13:17  peterg
45
46
47
48
49
50
51






52
53
54
55
56
57
58
## Revision 1.1  1996/11/01 12:34:54  peterg
## Initial revision
##
###############################################################

Topic=$1
topic=`echo $Topic | tr "[A-Z]" "[a-z]"`







if [ "$topic" = "" ]; then
    echo 'Usage: mtt help representations'
    echo '       mtt help components'
    echo '       mtt help examples' 
    echo '       mtt help CRs'    
    echo '       mtt help representations <match_string>'







>
>
>
>
>
>







48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
## Revision 1.1  1996/11/01 12:34:54  peterg
## Initial revision
##
###############################################################

Topic=$1
topic=`echo $Topic | tr "[A-Z]" "[a-z]"`

if [ -n "$2" ]; then
    regexp=$2;
else
    regexp='^';
fi

if [ "$topic" = "" ]; then
    echo 'Usage: mtt help representations'
    echo '       mtt help components'
    echo '       mtt help examples' 
    echo '       mtt help CRs'    
    echo '       mtt help representations <match_string>'
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
    name=''
    all='all'
    sort='sort -u'
    blurb="Examples";;

  representations)
    key=$summary 
    find_path=$MTTPATH/mtt
    name='mtt'
    all='all'
    sort='sort -u'
    blurb="Representations";;

  *)
    key="$summary|$description|$alias" 







|







98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
    name=''
    all='all'
    sort='sort -u'
    blurb="Examples";;

  representations)
    key=$summary 
    find_path=$MTTPATH
    name='mtt'
    all='all'
    sort='sort -u'
    blurb="Representations";;

  *)
    key="$summary|$description|$alias" 
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
  subtopic='.'
fi;

echo $blurb

  mtt_find $find_path "$name" |\
  awk '{print "cat " $1 "/" $2}'   | sh  |\
  egrep $key |\
  sed "s/$summary[	]*//" |\
  sed "s/$description[	]*/  /" |\
  sed "s/$alias[	]*/  Alias: /" |\
  sed "s!$find_path/!!" |\
  $sort









|







124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
  subtopic='.'
fi;

echo $blurb

  mtt_find $find_path "$name" |\
  awk '{print "cat " $1 "/" $2}'   | sh  |\
  egrep $key | egrep $regexp  |\
  sed "s/$summary[	]*//" |\
  sed "s/$description[	]*/  /" |\
  sed "s/$alias[	]*/  Alias: /" |\
  sed "s!$find_path/!!" |\
  $sort



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