#!/bin/bash . ./functions.sh make default-config 2>&1 | tee make.log grep '^In .* directory$' make.log | tee order-current.txt diff -u order-current.txt order-correct.txt || error "Subdirectories are not processed first"