Commit 3b202f07 authored by incardon's avatar incardon

Installation script remove unwanted prefix

parent eef25808
......@@ -18,11 +18,15 @@ CXXFLAGS+=" --std=c++11 -march=native -mtune=native -Wno-unused-local-typedefs -
NVCCFLAGS=" "
INCLUDES_PATH=" "
# Add openfpm_pdata to prefix forlder
# set default prefix
if [ x"$prefix" == x"NONE" ]; then
prefix="/usr/local"
fi
# Add openfpm_data to prefix folder (if prefix end if openfpm_pdata remove that path)
if [ echo "$prefix" | grep -qE "/openfpm_pdata$" ]; then
prefix=$(echo "$prefix" | sed 's/\(.*\)\/openfpm_pdata$/\1/g')
fi
prefix="$prefix//openfpm_data"
echo "Installation dir is: $prefix"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment