Skip to content
Snippets Groups Projects
Commit 5b91dda8 authored by glatyshe's avatar glatyshe
Browse files

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
parent c0bbc814
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
# They will be replaced during installation process # They will be replaced during installation process
THIS_PACKAGE=%this_package% THIS_PACKAGE=%this_package%
THIS_PACKAGE_INSTDIR=%this_package_instdir% THIS_PACKAGE_INSTDIR=%this_package_instdir%
THIS_PACKAGE_INSTDIRP="$(echo $THIS_PACKAGE_INSTDIR | tr '+' 'p')"
THIS_VERSION=%this_version% THIS_VERSION=%this_version%
THIS_DEPENDS="%dependencies%" THIS_DEPENDS="%dependencies%"
...@@ -14,6 +15,7 @@ THIS_DEPENDS="%dependencies%" ...@@ -14,6 +15,7 @@ THIS_DEPENDS="%dependencies%"
scriptdir=$(cd "$(dirname -- "${BASH_SOURCE:-$0}")" && pwd) scriptdir=$(cd "$(dirname -- "${BASH_SOURCE:-$0}")" && pwd)
PLATFORM=$(basename $scriptdir) PLATFORM=$(basename $scriptdir)
# set LCGDIR only if it is needed # 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") LCGDIR=$(echo $scriptdir | sed "s,$THIS_PACKAGE_INSTDIR/$THIS_VERSION/$PLATFORM,,g")
# delete trailing / # delete trailing /
LCGDIR=$(echo $LCGDIR | sed 's,/\+$,,g') LCGDIR=$(echo $LCGDIR | sed 's,/\+$,,g')
......
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