view more/build-control-images.sh @ 1252:ba951c11fb48

Refactor the gentoo bootstrap build some more. Add "build" and "files" subdirectories, split each package build into a separate file, break out reusable shell functions into functions.sh. Flow control now init chrooting into run-build-stages.sh calling the individual package scripts.
author Rob Landley <rob@landley.net>
date Sat, 25 Sep 2010 13:40:04 -0500
parents e104d771ca17
children f5c448622393
line wrap: on
line source

#!/bin/bash

# Build all control images (for native-build.sh) in build/control-images.

. sources/include.sh || exit 1

blank_tempdir build/control-images

# Iterate through sources/native-builds and run each script, writing output
# to build/control-images/$SCRIPTNAME.hdc

for i in sources/native-builds/*.sh
do
  SCRIPTNAME=$(echo $i | sed 's@.*/\(.*\)\.sh@\1@')
  # Forking doesn't work yet due to extract collisions with the same package
  #maybe_fork "$i build/control-images/$SCRIPTNAME.hdc | maybe_quiet"
  $i build/control-images/$SCRIPTNAME.hdc | maybe_quiet
done