#!/usr/bin/env bash echo 'building all components' cd .. for d in */; do cd "$d" FILE=build if [ -f $FILE ]; then echo 'building component ' + $d cd build cmake .. make make test cd .. fi cd .. done