File mttroot/mtt/bin/trans/mtt_get_subsystems artifact 368cf1b1dc part of check-in 0be332b4d1


#!/bin/sh
# Gets the subsystems

while [ -n "`echo $1 | grep '^-'`" ]; do
  case $1 in
	-strip )
                strip=yes;
		;;
	*)
		echo "$1 is an invalid argument - ignoring";
                exit ;;
  esac
  shift
done

subsystems=`sh $1_sub.sh "echo grep " " $1_abg.m" |\
            sh | gawk -F '.' '{print $3}'`

if [ -n "$strip" ]; then
      echo $subsystems  
   else
      for subsystem in $subsystems; do
	# echo -n $1_$subsystem' '
        echo $1_$subsystem #| gawk '{printf("%s ",$1)}'
    done
    echo
fi












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