view more/for-each-target.sh @ 1404:f24c0deeed24

Add quick and dirty toy to filter out baseconfig entries from miniconfig.sh output to give LINUX_CONFIG entry for a target settings file.
author Rob Landley <rob@landley.net>
date Mon, 27 Jun 2011 07:44:19 -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