File mttroot/mtt/bin/trans/mtt_get_subsystems artifact ea7dd9515e part of check-in 6346abd63e
#!/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 | awk -F '.' '{print $3}'` if [ -n "$strip" ]; then echo $subsystems else for subsystem in $subsystems; do echo -n $1_$subsystem' ' done echo fi