Skip to content
Snippets Groups Projects
Commit b442d3fd authored by David Blyth's avatar David Blyth Committed by Andre Sailer
Browse files

Fixed more remnants of copying environment scripts

parent 6c66c518
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
# This version of the script has been modified to set up environment variables for
# only DD4hep.
#
# This script if for the csh like shells, see thisdd4hep.sh for bash like shells.
# This script if for the csh like shells, see thisdd4hep_only.sh for bash like shells.
#
# Author: Pere Mato
......
......@@ -8,23 +8,19 @@
# Author: Pere Mato. F. Gaede, M.Frank
#-------------------------------------------------------------------------------
#
#echo " ### thisdd4hep.sh: initialize the environment for DD4hep ! "
#echo " ### thisdd4hep_only.sh: initialize the environment for DD4hep ! "
#
#-----------------------------------------------------------------------------
dd4hep_parse_this() {
package=${2};
if [ "x${1}" = "x" ]; then
if [ ! -f bin/this${package}.sh ]; then
echo ERROR: must "cd where/${package}/is" before calling ". bin/this${package}.sh" for this version of bash!;
if [ ! -f bin/this${package}_only.sh ]; then
echo ERROR: must "cd where/${package}/is" before calling ". bin/this${package}_only.sh" for this version of bash!;
return 1;
fi
THIS="${PWD}";
else
# get param to "."
THIS=$(dirname $(dirname ${1}));
#if [ ! -f ${THIS}/bin/this${package}.sh ]; then
# THIS=$(dirname ${package});
#fi;
fi;
THIS=$(cd ${THIS} > /dev/null; pwd);
}
......@@ -39,7 +35,6 @@ dd4hep_add_path() {
path_value=${path_prefix};
fi;
eval export ${path_name}=${path_value};
## echo "dd4hep_add_path: ${path_name}=${path_value}";
}
#-----------------------------------------------------------------------------
dd4hep_add_library_path() {
......
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