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.2 2000/10/16 09:10:08 peterg +## Now strips out "unwanted" bits frome the _aliased.txt file +## ## Revision 1.1 2000/10/12 19:24:28 peterg ## Initial revision ## ## ############################################################### @@ -33,26 +36,28 @@ # Sort the aliased list mtt_strip_args < $1_aliased.txt | sort -u > mtt_aliased_sort.txt # Compare it with the aliased list and show the differences diff mtt_all_sympar.txt mtt_aliased_sort.txt |\ -grep '<' | awk '{printf("%s\t%s\n", $2,$3)}' > mtt_sympar.txt +awk '{if ($1=="<") printf("%s\t%s\n", $2,$3)}' > mtt_sympar.txt # Assume same name in different system is the same awk '{ if ($1==name){ sysname[i++]=$2 } if ($1!=name){ - printf("%s\t",name) - comma=""; - for (j=1;j<=i;j++){ - printf("%s%s", comma, sysname[j]); - comma=","; + if (length(name)>0){ + printf("%s\t",name) + comma=""; + for (j=1;j<=i;j++){ + printf("%s%s", comma, sysname[j]); + comma=","; + } + printf("\n") } - printf("\n") i=1; sysname[1]=$2; } name = $1 } @@ -64,6 +69,12 @@ comma=","; } printf("\n") }' < mtt_sympar.txt >$filename + + + + + +