view more/for-each-target.sh @ 1581:f9b0ebfbdd1b

Package upgrades for busybox and toybox, and add musl to the download list.
author Rob Landley <rob@landley.net>
date Sun, 17 Feb 2013 22:19:55 -0600
parents 3a213739ee1c
children
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 "$* 2>&1 | maybe_quiet"
done

wait