annotate run-from-build.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 690b2f4cbbd3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
333
77c10235464d Simple script to run mini-native under its emulator, with distcc hooked
Rob Landley <rob@landley.net>
parents:
diff changeset
1 #!/bin/bash
77c10235464d Simple script to run mini-native under its emulator, with distcc hooked
Rob Landley <rob@landley.net>
parents:
diff changeset
2
1145
690b2f4cbbd3 Simplify run-from-build.sh.
Rob Landley <rob@landley.net>
parents: 1027
diff changeset
3 # Run development environment out of build directory, using host-tools.sh if
690b2f4cbbd3 Simplify run-from-build.sh.
Rob Landley <rob@landley.net>
parents: 1027
diff changeset
4 # available.
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.
Rob Landley <rob@landley.net>
parents: 678
diff changeset
5
1145
690b2f4cbbd3 Simplify run-from-build.sh.
Rob Landley <rob@landley.net>
parents: 1027
diff changeset
6 cd build/system-image-"$1" &&
690b2f4cbbd3 Simplify run-from-build.sh.
Rob Landley <rob@landley.net>
parents: 1027
diff changeset
7 PATH="$(pwd)/build/host:$PATH" ./dev-environment.sh