#!/bin/sh targets=$(ls) for target in $targets ; do if [ $target != 'build.sh' ] ; then cd $target ./build.sh cd .. fi done