File mttroot/mtt/bin/trans/abg2cmp_fig2txt artifact cb66a7f672 part of check-in 99cf718ca6


#! /bin/sh

### abg2cmp_fig2txt
##  Creates list of components contained in _abg.fig
## Copyright (C) 2002 by Peter J. Gawthrop

  ###################################### 
  ##### Model Transformation Tools #####
  ######################################
  
  ###############################################################
  ## Version control history
  ###############################################################
  ## $Log$
  ##
  ###############################################################

system=$1
infile=${system}_abg.fig
outfile=${system}_cmp.txt

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


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]