1 2 3 4 5 6 7 8
#!/bin/sh subdirs="ecp util test" for i in $subdirs; do (cd $i && make $1 && cd ..) || exit; done