diff build.sh @ 744:759adf5a0fe9

Refactor so include.sh 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 buildall.sh 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 buildall.sh doesn't spam the log with the new prerequisite error messages.
author Rob Landley <rob@landley.net>
date Thu, 11 Jun 2009 05:42:51 -0500
parents 428df726cf7f
children d8c780ed3686
line wrap: on
line diff
--- a/build.sh	Thu Jun 11 00:26:15 2009 -0500
+++ b/build.sh	Thu Jun 11 05:42:51 2009 -0500
@@ -5,7 +5,9 @@
 if [ $# -eq 0 ]
 then
   echo "Usage: $0 ARCH [ARCH...]"
-  sources/include.sh
+  . sources/include.sh
+  read_arch_dir
+  
   exit 1
 fi