Index: mttroot/mtt/bin/mtt_help ================================================================== --- mttroot/mtt/bin/mtt_help +++ mttroot/mtt/bin/mtt_help @@ -12,10 +12,14 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.6 1997/09/04 09:35:04 peterg +## Changed $ext to give accurate match -- matches t ot m at end of +## filename +## # Revision 1.5 1997/09/04 09:21:01 peterg # Added context-dependent sort. # # Revision 1.4 1997/09/04 09:16:29 peterg # Removed sort -u @@ -29,11 +33,11 @@ ## Revision 1.1 1996/11/01 12:34:54 peterg ## Initial revision ## ############################################################### -topic=$1 +topic=`tr [A-Z] [a-z] $1` if [ "$topic" = "" ]; then echo 'Usage: mtt help representations' echo ' mtt help components' echo ' mtt help examples' @@ -44,11 +48,11 @@ echo ' mtt help CRs ' echo ' mtt help ' exit fi -ext='_*.*[mt]' +ext='_[cl]*.*[mt]' summary='[%#]SUMMARY' description='[%#]DESCRIPTION' case $topic in components) @@ -97,11 +101,13 @@ fi; echo $blurb mtt_find $find_path "$name" "egrep -i $key.*$subtopic" $all|\ sed "s/$summary[ ]*/ /" |\ - sed "s/$description[ ]*/ /" | $sort + sed "s/$description[ ]*/ /" |\ + sed "s!$find_path/!!" |\ + $sort