Mercurial > hg > aboriginal
view build.sh @ 186:f8dac531cbb5
Use shell builtin time instead of /usr/bin version not everybody has.
(they behave differently, see "/usr/bin/time exit 1" vs "time exit 1", but
the shell version's good enough for now.)
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 29 Jun 2007 10:19:04 -0400 |
parents | dd60fbdf04c7 |
children | b2e353ae7566 |
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 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" time ./cross-compiler.sh $i || exit 1 echo "=== native ($i)" time ./mini-native.sh $i || exit 1 time ./package-mini-native.sh $i || exit 1 done