From 5b91dda8000149812e548a85fe8e83a971039fdf Mon Sep 17 00:00:00 2001 From: glatyshe <glatyshe@4525493e-7705-40b1-a816-d608a930855b> Date: Wed, 6 May 2015 09:35:10 +0000 Subject: [PATCH] properly process '++' packages located in 'pp' directories during sourcing env scripts git-svn-id: svn+ssh://svn.cern.ch/reps/lcgsoft/trunk/lcgcmake@7355 4525493e-7705-40b1-a816-d608a930855b --- generators/environment/common.template | 2 ++ 1 file changed, 2 insertions(+) diff --git a/generators/environment/common.template b/generators/environment/common.template index 5784af7..1d5f763 100644 --- a/generators/environment/common.template +++ b/generators/environment/common.template @@ -4,6 +4,7 @@ # They will be replaced during installation process THIS_PACKAGE=%this_package% THIS_PACKAGE_INSTDIR=%this_package_instdir% +THIS_PACKAGE_INSTDIRP="$(echo $THIS_PACKAGE_INSTDIR | tr '+' 'p')" THIS_VERSION=%this_version% THIS_DEPENDS="%dependencies%" @@ -14,6 +15,7 @@ THIS_DEPENDS="%dependencies%" scriptdir=$(cd "$(dirname -- "${BASH_SOURCE:-$0}")" && pwd) PLATFORM=$(basename $scriptdir) # set LCGDIR only if it is needed +echo $scriptdir | grep -q $THIS_PACKAGE_INSTDIRP && THIS_PACKAGE_INSTDIR=$THIS_PACKAGE_INSTDIRP LCGDIR=$(echo $scriptdir | sed "s,$THIS_PACKAGE_INSTDIR/$THIS_VERSION/$PLATFORM,,g") # delete trailing / LCGDIR=$(echo $LCGDIR | sed 's,/\+$,,g') -- GitLab