Permalink
Browse files

Read NAVE_CONFIG array from env when building

  • Loading branch information...
1 parent 25699f3 commit d0af3555e39c6830fdba182d782dff4bcf771113 @isaacs committed Mar 3, 2012
Showing with 10 additions and 2 deletions.
  1. +10 −2 nave.sh
View
12 nave.sh
@@ -180,7 +180,11 @@ build () {
local src="$NAVE_SRC/$version"
( cd -- "$src"
- JOBS=${JOBS:-2} ./configure --debug --prefix="$2" \
+ [ -f ~/.naverc ] && . ~/.naverc || true
+ if [ "$NAVE_CONFIG" == "" ]; then
+ NAVE_CONFIG=("--debug")
+ fi
+ JOBS=${JOBS:-2} ./configure "${NAVE_CONFIG[@]}" --prefix="$2" \
|| fail "Failed to configure $version"
JOBS=${JOBS:-2} make \
|| fail "Failed to make $version"
@@ -229,7 +233,11 @@ nave_test () {
nave_fetch "$version"
local src="$NAVE_SRC/$version"
( cd -- "$src"
- ./configure --debug || fail "failed to ./configure --debug"
+ [ -f ~/.naverc ] && . ~/.naverc || true
+ if [ "$NAVE_CONFIG" == "" ]; then
+ NAVE_CONFIG=("--debug")
+ fi
+ ./configure "${NAVE_CONFIG[@]}" || fail "failed to ./configure --debug"
make test-all || fail "Failed tests"
) || fail "failed"
}

0 comments on commit d0af355

Please sign in to comment.