Skip to content
Snippets Groups Projects
Commit b446501f authored by Christian Engwer's avatar Christian Engwer
Browse files

read BUILDDIR from opts file

[[Imported from SVN: r5821]]
parent 83ff33ff
No related branches found
No related tags found
No related merge requests found
......@@ -137,6 +137,7 @@ load_opts() {
CMD_FLAGS="$(eval echo \$${COMMAND}_FLAGS)"
local CMD_FLAGS_FROM_FILE=""
if test "x$DUNE_OPTS_FILE" != "x"; then
BUILDDIR="$(eval BUILDDIR=""; . $DUNE_OPTS_FILE; eval echo \$BUILDDIR)"
CMD_FLAGS_FROM_FILE="$(eval ${COMMAND}_FLAGS=""; . $DUNE_OPTS_FILE; eval echo \$${COMMAND}_FLAGS)"
fi
if test -n "$CMD_FLAGS_FROM_FILE"; then
......@@ -323,11 +324,15 @@ run_default_configure () {
echo ./configure "$PARAMS"
# create build directory of requested
if test -n "$BUILDDIR"; then
echo BUILDDIR: $BUILDDIR
read
test -d "$BUILDDIR" || mkdir "$BUILDDIR"
SRCDIR="$PWD"
cd "$BUILDDIR"
eval "$SRCDIR/configure" "$PARAMS" || exit 1
else
echo NO BUILDDIR
read
eval ./configure "$PARAMS" || exit 1
fi
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment