Skip to content
Snippets Groups Projects
Commit 944d41f0 authored by Marcel Loose's avatar Marcel Loose :sunglasses:
Browse files

BugID: 835

Use directory $prefix (if defined) to locate lofarinit.sh; otherwise
use LOFAR/LCS/Tools/src as fallback.
parent 363c59dc
No related branches found
No related tags found
No related merge requests found
......@@ -77,10 +77,15 @@ fi
# Make directory writable (needed for make distcheck).
chmod +w .
# Initialize LOFAR (if needed).
# Initialize LOFAR (if needed). Use make variable $prefix, if defined;
# otherwise use fallback LOFAR/LCS/Tools/src
# Note that if LOFARROOT is already set, it won't be changed because the
# Tools/src directory does not have a bin directory.
lofarinitdir=`pwd | sed -e 's%/LOFAR/.*%/LOFAR/LCS/Tools/src%'`
if test "$prefix"; then
lofarinitdir=$prefix
else
lofarinitdir=`pwd | sed -e 's%/LOFAR/.*%/LOFAR/LCS/Tools/src%'`
fi
cd $lofarinitdir
. lofarinit.sh
cd $curwd
......
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