comparison more/build-control-images.sh @ 1171:e104d771ca17

Fluff up comments, and use blank_tempdir so re-running recreates all the images.
author Rob Landley <rob@landley.net>
date Sat, 17 Jul 2010 14:19:39 -0500
parents 300e6d919d86
children f5c448622393
comparison
equal deleted inserted replaced
1170:e34c00072500 1171:e104d771ca17
1 #!/bin/bash 1 #!/bin/bash
2
3 # Build all control images (for native-build.sh) in build/control-images.
4
5 . sources/include.sh || exit 1
6
7 blank_tempdir build/control-images
2 8
3 # Iterate through sources/native-builds and run each script, writing output 9 # Iterate through sources/native-builds and run each script, writing output
4 # to build/control-images/$SCRIPTNAME.hdc 10 # to build/control-images/$SCRIPTNAME.hdc
5 11
6 . sources/include.sh || exit 1
7
8 mkdir -p build/control-images || dienow
9 for i in sources/native-builds/*.sh 12 for i in sources/native-builds/*.sh
10 do 13 do
11 SCRIPTNAME=$(echo $i | sed 's@.*/\(.*\)\.sh@\1@') 14 SCRIPTNAME=$(echo $i | sed 's@.*/\(.*\)\.sh@\1@')
12 # Forking doesn't work yet due to extract collisions with the same package 15 # Forking doesn't work yet due to extract collisions with the same package
13 #maybe_fork "$i build/control-images/$SCRIPTNAME.hdc | maybe_quiet" 16 #maybe_fork "$i build/control-images/$SCRIPTNAME.hdc | maybe_quiet"