Skip to content
Snippets Groups Projects
Commit 02e0ab8f authored by Markus Blatt's avatar Markus Blatt
Browse files

[release,dunecontrol] fixes sed statement for compiler extraction.

parent 90ebe897
Branches
Tags
No related merge requests found
......@@ -207,6 +207,10 @@ load_opts() {
fi
}
space=" "
tab=" "
BLANK="$space$tab"
# Uses the current compiler to extract information about the
# multiarch triplets and sets the export variable MULTIARCH_LIBDIR
# according to it.
......@@ -218,11 +222,11 @@ extract_multiarch(){
fi
if test "x$USE_CMAKE" = "xyes"; then
load_opts "cmake"
my_cxx_compiler=`echo $CMAKE_FLAGS | sed "s/.*\(-DCMAKE_CXX_COMPILER[:FILEPATH]*=\"[^\"]*\"\|$i='[^']*'\|$i=[^\s^ ]*\).*/\1/"`
my_cxx_compiler=`echo $CMAKE_FLAGS | grep CXX | sed "s/.*CXX=[\"']\?\([^[$BLANK]^'^\"]*\)[\"']\?.*/\1/"`
fi
if test "x$my_cxx_compiler" == "x"; then
load_opts "configure"
my_cxx_compiler=`echo $CONFIGURE_FLAGS | sed "s/.*\(CXX=\"[^\"]*\"\|$i='[^']*'\|$i=[^\s^ ]*\).*/\1/"`
my_cxx_compiler=`echo $CONFIGURE_FLAGS | grep CXX| sed "s/.*CXX=[\"']\?\([^[$BLANK]^'^\"]*\)[\"']\?.*/\1/"`
fi
if test "x$my_cxx_compiler" == "x"; then
set +e
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment