view more/for-each-target.sh @ 1318:a44deb7b4ee0 1.0.1

Busybox 1.18.0 doesn't build on Ubuntu 9.04. This fixes it.
author Rob Landley <rob@landley.net>
date Wed, 08 Dec 2010 02:42:07 -0600
parents dadbb8873a36
children b74d36876c0a
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="$(cd sources/targets/; ls | grep -v '^hw-')"

for TARGET in $ARCHES
do
  maybe_fork "$* | maybe_quiet"
done

wait