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

Save the path of $0 at the beginning of the script to COMMAND_DIR,

as the working directory changes during script execution.


[[Imported from SVN: r5142]]
parent 9cb76f31
No related branches found
No related tags found
No related merge requests found
......@@ -53,9 +53,10 @@ if test "x$DEBUG" = "xyes"; then
set -v
fi
export COMMAND_DIR="`canonicalpath $0`"
# Read the modules find part
. `canonicalpath $0`/dunemodules.inc
. "$COMMAND_DIR/dunemodules.inc"
# create PKG_CONFIG_PATH for installed dune modules
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:`canonicalpath $0`/../lib/pkgconfig"
......@@ -238,7 +239,7 @@ run_default_autogen () {
fi
done
# eval ./autogen.sh "$M4_PATH" "$PARAMS" || exit 1
eval `canonicalpath $0`/dune-autogen "$M4_PATH" "$PARAMS" || exit 1
eval "$COMMAND_DIR/dune-autogen" "$M4_PATH" "$PARAMS" || exit 1
fi
}
......
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