Index: mttroot/mtt/bin/trans/abg2lbl_fig2txt ================================================================== --- mttroot/mtt/bin/trans/abg2lbl_fig2txt +++ mttroot/mtt/bin/trans/abg2lbl_fig2txt @@ -11,10 +11,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.24 2001/08/02 03:24:48 geraint +## Replaced mtt_version.sh with mtt_banner.sh - I think this was the intent. +## ## Revision 1.23 2001/07/26 04:08:35 gawthrop ## Removed lines deleting _type.sh and cbg.m ## -- how did they get there ?? ## ## Revision 1.22 2001/07/08 03:28:11 gawthrop @@ -167,12 +170,13 @@ } create_lbl_body() { -## Find names aof all components -awk '/:/ {print $NF}' $1_abg.fig | \ +## Find names of all components +grep -v '\[[0-9]*:[0-9]*\]' $1_abg.fig |\ +awk '/:/ {print $NF}' | \ sed 's/\\001//' | \ sort | \ tee $1_raw_list | \ sort -u> $1_unique_raw_list Index: mttroot/mtt/bin/trans/abg2sub_fig2sh ================================================================== --- mttroot/mtt/bin/trans/abg2sub_fig2sh +++ mttroot/mtt/bin/trans/abg2sub_fig2sh @@ -12,10 +12,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ + ## Revision 1.2 2001/07/23 23:26:23 gawthrop + ## Removed some boring user feedback + ## ## Revision 1.1 2001/06/11 19:47:49 gawthrop ## Makes the sub.sh file directly from the abg.fig file ## Used for making lbl files (abg2lbl_fig2txt) ## ## @@ -37,10 +40,11 @@ echo "# Generated by MTT on `date`." >> $1_sub.sh echo >> $1_sub.sh # Get a list of all components for the _abg file cat $1_abg.fig |\ +grep -v '\[[0-9]*:[0-9]*\]' |\ grep ':' |\ awk '{if ($1==4) split($14,a,":"); print a[1]}' |\ sort -u > mtt_tmp1 # Remove all components starting with 0 or 1