view more/for-each-target.sh @ 1405:f46279a3a48a

Make i686-kvm actually use kvm.
author Rob Landley <rob@landley.net>
date Mon, 27 Jun 2011 07:53:54 -0500
parents b74d36876c0a
children 096ac2dfb9bd
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 "$TARGET" ] && continue
  maybe_fork "$* | maybe_quiet"
done

wait