Overview
Comment:Added context-dependent sort.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 7e9d2ddb9ddfb12a3d5ece519b2ef59cc4400ead93ac246190219442f1b53ad6
User & Date: gawthrop@users.sourceforge.net on 1997-09-04 09:21:01
Other Links: branch diff | manifest | tags
Context
1997-09-04
09:35:04
Changed $ext to give accurate match -- matches t ot m at end of
filename
check-in: d7c6bd8641 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
09:21:01
Added context-dependent sort. check-in: 7e9d2ddb9d user: gawthrop@users.sourceforge.net tags: origin/master, trunk
09:16:29
Removed sort -u check-in: 9660c369df user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/mtt_help from [40f559d953] to [187641e057].

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.3  1996/11/09 21:10:20  peterg
## Tidied up searches by putting everyrhing into lib.
##
# Revision 1.2  1996/11/02  10:22:54  peterg
# Now browses crs.
#
## Revision 1.1  1996/11/01 12:34:54  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.4  1997/09/04  09:16:29  peterg
# Removed sort -u
#
## Revision 1.3  1996/11/09 21:10:20  peterg
## Tidied up searches by putting everyrhing into lib.
##
# Revision 1.2  1996/11/02  10:22:54  peterg
# Now browses crs.
#
## Revision 1.1  1996/11/01 12:34:54  peterg
45
46
47
48
49
50
51

52
53
54
55
56
57

58
59
60
61
62
63
64

65
66
67
68
69
70
71

72
73
74
75
76
77
78

79
80
81
82
83
84
85
86
87
88
89
90
91

92
93
94
95
96
97
98
99
100
101
description='[%#]DESCRIPTION'

case $topic in
  components)
    key=$summary 
    find_path=$MTT_COMPONENTS
    name='*_*.*'

    blurb="Components";;

  crs) 
    key=$summary 
    find_path=$MTT_CRS
    name='*.cr'

    blurb="Constitutive Relationships";;

  examples) 
    key=$summary 
    find_path=$MTT_EXAMPLES
    name='*_lbl.txt'
    all='all'

    blurb="Examples";;

  representations)
    key=$summary 
    find_path=$MTTPATH/mtt
    name='mtt'
    all='all'

    blurb="Representations";;

  *)
    key="\"$summary|$description\"" 
    find_path=$MTT_LIB
    name=$topic$ext
    all=''

    blurb=$topic;;     
  
esac

subtopic=$2
if [ "$subtopic" = "" ]; then
  subtopic='.'
fi;

echo $blurb
  mtt_find $find_path "$name" "egrep -i $key.*$subtopic" $all|\
  sed "s/$summary[	]*/  /" |\
  sed "s/$description[	]*/  /"


















>






>







>







>







>












|
>










48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
description='[%#]DESCRIPTION'

case $topic in
  components)
    key=$summary 
    find_path=$MTT_COMPONENTS
    name='*_*.*'
    sort='sort -u'
    blurb="Components";;

  crs) 
    key=$summary 
    find_path=$MTT_CRS
    name='*.cr'
    sort='sort -u'
    blurb="Constitutive Relationships";;

  examples) 
    key=$summary 
    find_path=$MTT_EXAMPLES
    name='*_lbl.txt'
    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\"" 
    find_path=$MTT_LIB
    name=$topic$ext
    all=''
    sort='cat'
    blurb=$topic;;     
  
esac

subtopic=$2
if [ "$subtopic" = "" ]; then
  subtopic='.'
fi;

echo $blurb
  mtt_find $find_path "$name" "egrep -i $key.*$subtopic" $all|\
  sed "s/$summary[	]*/  /" |\
  sed "s/$description[	]*/  /" | $sort












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