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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
77632d05568c Add "all" target to build.sh
Rob Landley <rob@landley.net>
parents: 2
diff changeset
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
77632d05568c Add "all" target to build.sh
Rob Landley <rob@landley.net>
parents: 2
diff changeset
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
77632d05568c Add "all" target to build.sh
Rob Landley <rob@landley.net>
parents: 2
diff changeset
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
77632d05568c Add "all" target to build.sh
Rob Landley <rob@landley.net>
parents: 2
diff changeset
10 if [ "$1" != all ]
77632d05568c Add "all" target to build.sh
Rob Landley <rob@landley.net>
parents: 2
diff changeset
11 then
77632d05568c Add "all" target to build.sh
Rob Landley <rob@landley.net>
parents: 2
diff changeset
12 images/"$1"/build.sh
77632d05568c Add "all" target to build.sh
Rob Landley <rob@landley.net>
parents: 2
diff changeset
13 else
77632d05568c Add "all" target to build.sh
Rob Landley <rob@landley.net>
parents: 2
diff changeset
14 for i in $(ls images)
77632d05568c Add "all" target to build.sh
Rob Landley <rob@landley.net>
parents: 2
diff changeset
15 do
77632d05568c Add "all" target to build.sh
Rob Landley <rob@landley.net>
parents: 2
diff changeset
16 images/"$i"/build.sh || exit 1
77632d05568c Add "all" target to build.sh
Rob Landley <rob@landley.net>
parents: 2
diff changeset
17 done
77632d05568c Add "all" target to build.sh
Rob Landley <rob@landley.net>
parents: 2
diff changeset
18 fi