Overview
Comment:Default null $2 (regexp) to '^' - ie match any line
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 49988ed4a29d458d3585a4113e384a4d303726805ca0d8154bed63c994742c20
User & Date: gawthrop@users.sourceforge.net on 1998-07-21 08:47:59
Other Links: branch diff | manifest | tags
Context
1998-07-21
09:34:32
Initial revision check-in: ec9a1d30d5 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
08:47:59
Default null $2 (regexp) to '^' - ie match any line check-in: 49988ed4a2 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1998-07-19
16:59:56
Initial revision check-in: bde8cac2d9 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/mtt_help from [68981e0e30] to [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 ]