Mercurial > hg > aboriginal
view more/for-each-target.sh @ 1444:f8c41d637b7b
Announce current target in more/for-each-target.sh
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 13 Sep 2011 16:27:21 -0500 |
parents | 096ac2dfb9bd |
children | 3a213739ee1c |
line wrap: on
line source
#!/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. . sources/utility_functions.sh || exit 1 [ -z "${ARCHES}" ] && ARCHES="$(ls sources/targets)" for TARGET in $ARCHES do [ ! -f "sources/targets/$TARGET" ] && continue announce "$TARGET running" maybe_fork "$* | maybe_quiet" done wait