Index: mttroot/mtt/bin/trans/mtt2reps_txt ================================================================== --- mttroot/mtt/bin/trans/mtt2reps_txt +++ mttroot/mtt/bin/trans/mtt2reps_txt @@ -7,10 +7,14 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.7 2000/04/04 16:15:14 peterg +## Fixed awk prob - must be the same sep. for each field (?) +## So tr tab to space +## ## Revision 1.6 2000/04/04 13:09:51 peterg ## *** empty log message *** ## ## Revision 1.5 2000/01/19 17:26:12 peterg ## Now includes the representation title. @@ -30,11 +34,11 @@ ## Revision 1.1 1998/10/20 08:15:08 peterg ## Initial revision ## ############################################################### - +sep='|'; # Separates the languages from the rest. representations=`grep '#SUMMARY' $MTTPATH/mtt | awk '{print $2'} | sort -u ` for rep in $representations ; do ## Title should be same for all languages -- but extract the first non-empty version title=`grep '#SUMMARY' $MTTPATH/mtt | tr '\t' ' ' | grep "$rep[ *]" | \ @@ -52,12 +56,12 @@ if (($2==rep)||($2==sprintf("%s*",rep))) print $NF }' rep=$rep |\ sort -u | sed 's/[()]//g'` Title='('$title')' - echo $rep $Title $language + echo -e $rep $Title '\t' $sep $language done