Mercurial > hg > aboriginal
view more/for-each-target.sh @ 1217:1a24dc2bb3cb
Make sure PATH and CONSOLE are properly exported even when kernel command line doesn't provide the right data.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 21 Aug 2010 01:33:02 -0500 |
parents | 300e6d919d86 |
children | dadbb8873a36 |
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/functions.sh || exit 1 [ -z "${ARCHES}" ] && ARCHES="$(cd sources/targets/; ls | grep -v '^hw-')" for TARGET in $ARCHES do maybe_fork "$* | maybe_quiet" done wait