view @ 744:759adf5a0fe9

Refactor so mostly just sets environment variables. Move read_arch_dir to function and call it explicitly (no more need for $NO_ARCH). Make blank_tempdir a function, called explicitly by stages when needed, with some sanity checks. Insert prerequisite tests to later stages so they can detect failure early and provide an explicit erro rmessage, and have those tests happen before blanking $WORK dir, to preserve debugging info. Make depend on prerequisite tests rather than trying to avoid calling later stages (and thus do flow control from asynchronous context). Add FAIL_QUIET option so doesn't spam the log with the new prerequisite error messages.
author Rob Landley <>
date Thu, 11 Jun 2009 05:42:51 -0500
parents ea25e4da724e
children 93f2e856357e
line wrap: on
line source


source sources/ || exit 1


if [ ! -f "$SYSDIR/" ]
  [ -z "$FAIL_QUIET" ] && echo "No $SYSDIR/" >&2
  exit 1

cd "$SYSDIR" || exit 1

# A little paranoia.
[ -f "image-${ARCH}.ext2" ] && fsck.ext2 -y "image-${ARCH}.ext2" </dev/null

# And run it, using the distccd we built (if necessary) and the cross-compiler.

./ --make-hdb 2048 --memory 256 --with-distcc \