#!/bin/bash set -e cd "$(dirname "$0")" for d in */; do (if cd "$d" 2> /dev/null; then sudo make clean install fi) done