annotate more/build-control-images.sh @ 1276:a3abaabac98e

Missed a bit of the name change.
author Rob Landley <rob@landley.net>
date Sun, 07 Nov 2010 15:57:32 -0600
parents f5c448622393
children 35dc1da8988c
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
e104d771ca17 Fluff up comments, and use blank_tempdir so re-running recreates all the images.
Rob Landley <rob@landley.net>
parents: 1157
diff changeset
5 . sources/include.sh || exit 1
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
1276
a3abaabac98e Missed a bit of the name change.
Rob Landley <rob@landley.net>
parents: 1262
diff changeset
14 SCRIPTNAME=$(echo $i | sed 's@sources/control-images/\([^./]*\).*@\1@')
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
94173723a272 Bug workaround for FORK=1 build-control-images.sh
Rob Landley <rob@landley.net>
parents: 1114
diff changeset
16 #maybe_fork "$i build/control-images/$SCRIPTNAME.hdc | maybe_quiet"
94173723a272 Bug workaround for FORK=1 build-control-images.sh
Rob Landley <rob@landley.net>
parents: 1114
diff changeset
17 $i build/control-images/$SCRIPTNAME.hdc | 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
18 done