Mercurial > hg > aboriginal
comparison sources/more/buildall.sh @ 902:ab47c4944591
Make buildall.sh do less host-specific work before allowing parallel builds to start.
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 25 Nov 2009 21:58:16 -0600 |
parents | 06f80138cb90 |
children | 991a74436235 |
comparison
equal
deleted
inserted
replaced
901:777af6561b2c | 902:ab47c4944591 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Build every target architecture, creating out-$ARCH.txt log files. | 3 # Build every target architecture, creating build-$ARCH.txt log files. |
4 # If $FORK is set, build them in parallel. | 4 # If $FORK is set, build them in parallel. |
5 | 5 |
6 . sources/functions.sh || exit 1 | 6 . sources/functions.sh || exit 1 |
7 | 7 |
8 [ -z "$STATIC_CROSS_COMPILER_HOST" ] && export STATIC_CROSS_COMPILER_HOST=i686 | 8 [ -z "$STATIC_CROSS_COMPILER_HOST" ] && export STATIC_CROSS_COMPILER_HOST=i686 |
28 | 28 |
29 # If this fails, don't bother trying to build the other targets. | 29 # If this fails, don't bother trying to build the other targets. |
30 | 30 |
31 blank_tempdir build | 31 blank_tempdir build |
32 mkdir -p build/logs && | 32 mkdir -p build/logs && |
33 ln -s out-"$STATIC_CROSS_COMPILER_HOST".txt build/logs/out-host.txt && | 33 (./download.sh --extract 2>&1 && |
34 (./build.sh 2>&1 "$STATIC_CROSS_COMPILER_HOST" || dienow) \ | 34 ./host-tools.sh 2>&1 && |
35 | tee build/logs/build-"$STATIC_CROSS_COMPILER_HOST".txt | maybe_quiet | 35 ./cross-compiler.sh 2>&1 "$STATIC_CROSS_COMPILER_HOST" || |
36 dienow) | tee build/logs/build-host-cc.txt | maybe_quiet | |
36 | 37 |
37 cp packages/MANIFEST build || dienow | 38 cp packages/MANIFEST build || dienow |
38 | 39 |
39 # Build all the remaining cross compilers, possibly in parallel | 40 # Build all the remaining cross compilers, possibly in parallel |
40 | 41 |