view build.sh @ 184:dd60fbdf04c7 0.2.2

Add time information to the build output.
author Rob Landley <rob@landley.net>
date Tue, 26 Jun 2007 22:10:12 -0400
parents ce1ca3d0f95b
children f8dac531cbb5
line wrap: on
line source

#!/bin/bash

# If run with no arguments, list architectures.

if [ $# -eq 0 ]
then
  echo "Usage: $0 ARCH [ARCH...]"
  ./include.sh
  exit 1
fi

# Download source code and build host tools.

./download.sh || exit 1
/usr/bin/time ./host-tools.sh || exit 1

# Run the steps in order for each architecture listed on the command line
for i in "$@"
do
  echo "=== Building ARCH $i"
  /usr/bin/time ./cross-compiler.sh $i || exit 1
  echo "=== native ($i)"
  /usr/bin/time ./mini-native.sh $i || exit 1
  /usr/bin/time ./package-mini-native.sh $i || exit 1
done