Index: mttroot/mtt/bin/trans/abg2cmp_fig2txt ================================================================== --- mttroot/mtt/bin/trans/abg2cmp_fig2txt +++ mttroot/mtt/bin/trans/abg2cmp_fig2txt @@ -10,23 +10,66 @@ ############################################################### ## Version control history ############################################################### ## $Log$ + ## Revision 1.1 2002/12/01 14:54:39 gawthrop + ## Replaces defunct abg2lbl_fig2txt + ## ## ############################################################### system=$1 infile=${system}_abg.fig outfile=${system}_cmp.txt +date=`date` echo Creating ${outfile} -## Find names of all components -grep -v '\[[0-9]*:[0-9]*\]' ${infile} |\ -gawk '/:/ {print $NF}' | \ -sed 's/\\001//' | \ -sort -u> ${outfile} - -## Create cmp.txt files beneath this one -##mtt -q -u -l 1 ${system} sub sh # Create the list of subsystems -##sh ${system}_sub.sh "abg2cmp_fig2txt " " " # Create the comp files +header() { + cat < ${outfile} + +## Make list of components +get_valid_components < ${infile} |\ + remove_port_labels |\ + remove_junctions |\ + sort -u >> ${outfile}