Mercurial > hg > aboriginal
changeset 578:715c94bd059e
Alas, bash won't leave variables set after a loop exits unless export every single one.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 09 Jan 2009 22:40:15 -0600 |
parents | 2d22a34b6105 |
children | 05a608d26600 |
files | sources/include.sh |
diffstat | 1 files changed, 9 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/sources/include.sh Fri Jan 09 22:03:04 2009 -0600 +++ b/sources/include.sh Fri Jan 09 22:40:15 2009 -0600 @@ -71,17 +71,15 @@ # Read the relevant config file, iterating to find base architecture if any. - BASE_ARCH="$ARCH_NAME" - while [ ! -z "$BASE_ARCH" ] - do - export ARCH="$BASE_ARCH" - BASE_ARCH="" - if [ -z "$NO_BASE_ARCH" ] - then - export CONFIG_DIR="${TOP}/sources/targets/${ARCH}" - source "${CONFIG_DIR}/details" - fi - done + ARCH="$ARCH_NAME" + CONFIG_DIR="${TOP}/sources/targets/${ARCH}" + source "${CONFIG_DIR}/details" + if [ ! -z "$BASE_ARCH" ] + then + ARCH="$BASE_ARCH" + CONFIG_DIR="${TOP}/sources/targets/${ARCH}" + source "${CONFIG_DIR}/details" + fi # Which platform are we building for?