Index: mttroot/mtt/bin/trans/mtt_make_sympar ================================================================== --- mttroot/mtt/bin/trans/mtt_make_sympar +++ mttroot/mtt/bin/trans/mtt_make_sympar @@ -11,10 +11,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.6 2001/04/10 12:54:50 gawthrop +## Minor fixes for sensitivity versions +## ## Revision 1.5 2000/11/03 14:57:06 peterg ## Corrected regexp notvar ## ## Revision 1.4 2000/11/02 18:53:46 peterg ## Added NOPAR words to unwanted list. @@ -47,11 +50,11 @@ # Create list of unwanted stuff cat mtt_aliased_sort.txt> mtt_unwanted.txt notvar="[%|#]NOT[V|P]AR"; -grep $notvar $1_lbl.txt | awk '{printf("%s\t%s\n", $2,sys)'} sys=$1 >>mtt_unwanted.txt +sh $1_type.sh 'strip_notvars.sh ' ' ' ' mtt_unwanted.txt' sort -u mtt_unwanted.txt > mtt_unwanted_sort.txt # Compare it with the aliased list and show the differences diff mtt_all_sympar.txt mtt_unwanted_sort.txt |\ ADDED mttroot/mtt/bin/trans/strip_notvars.sh Index: mttroot/mtt/bin/trans/strip_notvars.sh ================================================================== --- /dev/null +++ mttroot/mtt/bin/trans/strip_notvars.sh @@ -0,0 +1,11 @@ +#! /bin/sh + +type=$1 +name=$2 +file=$3 + +notvar="[%|#]NOT[V|P]AR" +grep ${notvar} ${type}_lbl.txt |\ + awk '{ printf ("%s\t%s\n", $2, name) }' name=${name} \ + >> ${file} +