#!/bin/bash # Iterate through every target architecture, running rest of command line # on each $TARGET. # If $FORK is set, run them in parallel with filtered output. source sources/utility_functions.sh || exit 1 test -z ${ARCHES} && setvar ARCHES = "$(ls sources/targets)" for TARGET in $ARCHES { test ! -f "sources/targets/$TARGET" && continue announce "$TARGET running" maybe_fork "$[join(ARGV)] 2>&1 | maybe_quiet" } wait