Skip to content
Snippets Groups Projects
Commit 48797335 authored by Siddhant Tibrewal's avatar Siddhant Tibrewal
Browse files

fixed improper escaping of list arguments in helper scripts

parent ebc31ab5
No related branches found
No related tags found
1 merge request!46Build process for multiple compilers across different machines
......@@ -55,10 +55,10 @@ function clone_to {
# invoke with the specified CC and CXX if they are present as variables
function invoke_build_script_generation {
if [ -n "$CC" ] && [ -x "${CC}" ] && [ -n "$CXX" ] && [ -x "${CXX}" ] && [ -n "$FC" ] && [ -x "${FC}" ]; then
echo "invoking.. CC=$CC CXX=$CXX cmake $@"
CC=$CC CXX=$CXX $@
echo "invoking.. CC=$CC CXX=$CXX FC=$FC "$@""
CC=$CC CXX=$CXX FC=$FC "$@"
else
$@
"$@"
fi
}
......@@ -159,7 +159,7 @@ function install_healpix {
mkdir -p "$LIBSHARP_BUILD_FOLDER"
cd "$LIBSHARP_BUILD_FOLDER"
"$LIBSHARP_ROOT"/configure --prefix="$INSTALL_DIR"
invoke_build_script_generation "$LIBSHARP_ROOT"/configure --prefix="$INSTALL_DIR"
make -j "$THREADS"
make install
......@@ -211,7 +211,6 @@ function install_yaxt {
clone_to https://gitlab.dkrz.de/dkrz-sw/yaxt.git "$REPO_PATH" "$REPO_TAG_YAXT"
#-------------------------------------------------------------------------------------
# install yac
cd "$REPO_PATH"
autoreconf -ifv
......@@ -234,7 +233,6 @@ function install_yac {
clone_to https://gitlab.dkrz.de/dkrz-sw/yac.git "$REPO_PATH" "$REPO_TAG_YAC"
#-------------------------------------------------------------------------------------
# install yac
cd "$REPO_PATH"
autoreconf -ifv
......
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