annotate more/build-control-images.sh @ 1391:42ec661e3916

Fix BINARY_PACKAGE_TARBALLS generation: some packages produce no output (zlib used to build dropbear for example), and thus check for an empty list before trying to make a tarball.
author Rob Landley <rob@landley.net>
date Fri, 17 Jun 2011 13:00:17 -0500
parents 35dc1da8988c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1114
be94bf38648b Break up buildall.sh so it's easier to run individual portions of it.
Rob Landley <rob@landley.net>
parents:
diff changeset
1 #!/bin/bash
be94bf38648b Break up buildall.sh so it's easier to run individual portions of it.
Rob Landley <rob@landley.net>
parents:
diff changeset
2
1171
e104d771ca17 Fluff up comments, and use blank_tempdir so re-running recreates all the images.
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
3 # Build all control images (for native-build.sh) in build/control-images.
e104d771ca17 Fluff up comments, and use blank_tempdir so re-running recreates all the images.
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
4
1280
35dc1da8988c Change control image scripts so they always build in build/control-images, and put the extracted and archived (squashfs) versions in the same directory the way the other build scripts do. Also use utility_functions.sh as appropriate.
Rob Landley <rob@landley.net>
parents: 1276
diff changeset
5 . sources/utility_functions.sh || exit 1
1171
e104d771ca17 Fluff up comments, and use blank_tempdir so re-running recreates all the images.
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
6
e104d771ca17 Fluff up comments, and use blank_tempdir so re-running recreates all the images.
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
7 blank_tempdir build/control-images
e104d771ca17 Fluff up comments, and use blank_tempdir so re-running recreates all the images.
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
8
1276
a3abaabac98e Missed a bit of the name change.
Rob Landley <rob@landley.net>
parents: 1262
diff changeset
9 # Iterate through sources/control-images and run each script, writing output
1114
be94bf38648b Break up buildall.sh so it's easier to run individual portions of it.
Rob Landley <rob@landley.net>
parents:
diff changeset
10 # to build/control-images/$SCRIPTNAME.hdc
be94bf38648b Break up buildall.sh so it's easier to run individual portions of it.
Rob Landley <rob@landley.net>
parents:
diff changeset
11
1276
a3abaabac98e Missed a bit of the name change.
Rob Landley <rob@landley.net>
parents: 1262
diff changeset
12 for i in sources/control-images/{*.sh,*/make-control-image.sh}
1114
be94bf38648b Break up buildall.sh so it's easier to run individual portions of it.
Rob Landley <rob@landley.net>
parents:
diff changeset
13 do
1280
35dc1da8988c Change control image scripts so they always build in build/control-images, and put the extracted and archived (squashfs) versions in the same directory the way the other build scripts do. Also use utility_functions.sh as appropriate.
Rob Landley <rob@landley.net>
parents: 1276
diff changeset
14 $i | maybe_quiet
1143
94173723a272 Bug workaround for FORK=1 build-control-images.sh
Rob Landley <rob@landley.net>
parents: 1114
diff changeset
15 # Forking doesn't work yet due to extract collisions with the same package
1280
35dc1da8988c Change control image scripts so they always build in build/control-images, and put the extracted and archived (squashfs) versions in the same directory the way the other build scripts do. Also use utility_functions.sh as appropriate.
Rob Landley <rob@landley.net>
parents: 1276
diff changeset
16 #maybe_fork "$i | maybe_quiet"
1114
be94bf38648b Break up buildall.sh so it's easier to run individual portions of it.
Rob Landley <rob@landley.net>
parents:
diff changeset
17 done