view build.sh @ 6:dc3d5c66e336

The perl build is crazy, and if you have a /bin/mips it tries to run it to see if it's building on an obsolete OS called "mips" rather than Linux. Except that util-linux-ng does a mips alias for setarch, which runs /bin/sh by default if given no arguments, which sits there awaiting input, and the build hangs. Fix: feed it /dev/null.
author Rob Landley <rob@landley.net>
date Sat, 17 Sep 2011 00:53:33 -0500
parents 77632d05568c
children 242a1e03ce15
line wrap: on
line source

#/bin/bash

if [ "$1" != "all" ] && [ ! -x "images/$1/build.sh" ]
then
  echo 'Available images (or "all"):'
  ls images
  exit 1
fi

if [ "$1" != all ]
then
  images/"$1"/build.sh
else
  for i in $(ls images)
  do
    images/"$i"/build.sh || exit 1
  done
fi