view more/for-each-target.sh @ 1522:95a720e694a6

Switch x86_64 from nptl back to pthreads. This isn't the correct fix but uClibc apparently never tested nptl on x86-64, and one of the assembly files doesn't support PIC.
author Rob Landley <rob@landley.net>
date Thu, 10 May 2012 22:03:22 -0500
parents f8c41d637b7b
children 3a213739ee1c
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 "$* | maybe_quiet"
done

wait