Mercurial > hg > control-images
annotate 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 |
rev | line source |
---|---|
2
1a7e1616ab9d
Convert builds to use the new layout.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 #/bin/bash |
1a7e1616ab9d
Convert builds to use the new layout.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 |
4 | 3 if [ "$1" != "all" ] && [ ! -x "images/$1/build.sh" ] |
2
1a7e1616ab9d
Convert builds to use the new layout.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 then |
4 | 5 echo 'Available images (or "all"):' |
2
1a7e1616ab9d
Convert builds to use the new layout.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
6 ls images |
4 | 7 exit 1 |
2
1a7e1616ab9d
Convert builds to use the new layout.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
8 fi |
1a7e1616ab9d
Convert builds to use the new layout.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
9 |
4 | 10 if [ "$1" != all ] |
11 then | |
12 images/"$1"/build.sh | |
13 else | |
14 for i in $(ls images) | |
15 do | |
16 images/"$i"/build.sh || exit 1 | |
17 done | |
18 fi |