view more/for-each-target.sh @ 1273:dadbb8873a36

functions.sh no longer includes utility-functions.sh, so adjust includes.
author Rob Landley <rob@landley.net>
date Sun, 07 Nov 2010 13:59:42 -0600
parents 300e6d919d86
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