Skip to content
Snippets Groups Projects
Commit 332e4d01 authored by Thomas Juerges's avatar Thomas Juerges
Browse files

L2SS-124 Fix the bug in lofar20rc.sh

The script can now locate itself and set LOFAR20_DIR accordingly.
This allows for multiple installations in parallel.
parent 7f786752
No related branches found
No related tags found
1 merge request!37L2SS-124 Fix the bug in lofar20rc.sh
#! /usr/bin/env bash -e
# Set up the LOFAR2.0 environment. # Set up the LOFAR2.0 environment.
# For the time being it is assumend that the LOFAR2.0 environment has to # For the time being it is assumend that the LOFAR2.0 environment has to
# co-exist with a LOFAR1 environment. # co-exist with a LOFAR1 environment.
...@@ -6,9 +7,10 @@ ...@@ -6,9 +7,10 @@
# And export those directories for LOFAR in Tango Docker images. # And export those directories for LOFAR in Tango Docker images.
# Pass a directory as first parameter to this script. This will # Pass a directory as first parameter to this script. This will
# then be used as LOFAR20_DIR. Otherwise the current directory will # then be used as LOFAR20_DIR. Otherwise this file's directory
# be used. # be used to determine the tango directory location.
export LOFAR20_DIR=${1:-${PWD}} ABSOLUTE_PATH=$(realpath $(dirname ${BASH_SOURCE}))
export LOFAR20_DIR=${1:-$(realpath ${ABSOLUTE_PATH}/../..)}
# This needs to be modified for a development environment. # This needs to be modified for a development environment.
# Example: ~/lofar2.0/tango # Example: ~/lofar2.0/tango
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment