Differences From Artifact [f52b831404]:
- Executable file mttroot/mtt/bin/trans/mtt_get_subsystems — part of check-in [9e50e5fe64] at 2000-09-02 14:46:43 on branch origin/master — Initial revision (user: gawthrop@users.sourceforge.net, size: 120) [annotate] [blame] [check-ins using]
To Artifact [21c4e58c61]:
- Executable file mttroot/mtt/bin/trans/mtt_get_subsystems — part of check-in [06ed7cb0b6] at 2000-09-02 15:21:31 on branch origin/master — Added -strip option (user: gawthrop@users.sourceforge.net, size: 421) [annotate] [blame] [check-ins using]
1 2 3 4 5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | + + + + + + + + + + + + + + + - + + + + + + + + + + + |
#!/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_type.sh 'echo ' ' ' | awk '{if (NR>1) print $2}'`
if [ -n "$strip" ]; then
echo $subsystems | sed "s/$1_//" | sed "s/ $1_/ /g"
else
|