comparison build.sh @ 96:137ba51ee993

Delete output directories on re-run, teach build to log and build multiple targets (in series), give hosttools its own target directory, add toybox to hosttools build (for gene2fs soon), update uClibc snapshot.
author Rob Landley <rob@landley.net>
date Thu, 01 Feb 2007 00:37:50 -0500
parents 153ba1a0b427
children b5b65762dd87
comparison
equal deleted inserted replaced
95:027e15c1cfec 96:137ba51ee993
1 #!/bin/sh 1 #!/bin/bash
2 2
3 ./download.sh && 3 source include.sh
4 ./host-tools.sh $1 && 4
5 ./cross-compiler.sh $1 && 5 # I have no idea why this is spawning a subshell. I want "thing || exit | tee"
6 ./mini-native.sh $1 6 # but there doesn't seem to be a syntax for that, so we remember PID and kill.
7
8 PARENT=$$
9 {
10 ./download.sh || kill $PARENT
11 ./host-tools.sh || kill $PARENT
12 } | tee out-all.txt
13
14 for i in "$@"
15 do
16 {
17 ./cross-compiler.sh "$i" || kill $PARENT
18 ./mini-native.sh "$i" || kill $PARENT
19 } | tee "out-$i.txt"
20 done