From d51103f7beccd3f5fc58bf3165c60fc7a812ae56 Mon Sep 17 00:00:00 2001 From: Pietro Incardona <incardon@mpi-cbg.de> Date: Mon, 14 Sep 2015 13:00:07 +0200 Subject: [PATCH] Installation script remove unwanted prefix --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6cc50d53..e19665ee 100755 --- a/configure.ac +++ b/configure.ac @@ -18,7 +18,10 @@ CXXFLAGS+=" --std=c++11 -march=native -mtune=native -Wno-unused-local-typedefs - NVCCFLAGS=" " INCLUDES_PATH=" " -# Add openfpm_pdata to prefix forlder +# Add openfpm_io to prefix forlder (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_io" echo "Installation dir is: $prefix" -- GitLab