Commit 5a788a19 authored by Andrea Sciaba's avatar Andrea Sciaba
Browse files

Added path to sw on OSG

parent 308fa453
......@@ -9,11 +9,19 @@ set +x
echo "</pre>"
echo "<h2>Checking software directory for CMS VO</h2>"
vo_dir=$VO_CMS_SW_DIR
echo "Checking variable: \$VO_CMS_SW_DIR=$vo_dir"
if [ -n "$VO_CMS_SW_DIR" ] ; then
SW_DIR=$VO_CMS_SW_DIR
echo "Checking variable: \$VO_CMS_SW_DIR=$VO_CMS_SW_DIR"
elif [ -n "$OSG_APP" ] ; then
SW_DIR=$OSG_APP/cmssoft/cms
echo "Checking variable: \$OSG_APP/cmssoft/cms=$OSG_APP/cmssoft/cms"
else
echo "ERROR: Neither VO_CMS_SW_DIR nor OSG_APP defined"
exit $SAME_ERROR
fi
echo "<pre>"
set -x
ls -ld $vo_dir
ls -ld $SW_DIR
result=$?
set +x
echo "</pre>"
......@@ -27,7 +35,7 @@ fi
echo "<pre>"
set -x
touch $vo_dir/.sametest
touch $SW_DIR/.sametest
result=$?
set +x
echo "</pre>"
......@@ -39,10 +47,10 @@ if [ $result != 0 ]
fi
echo "<h2>Sourcing the CMS environment</h2>"
echo "<pre>"
export SCRAM_ARCH=slc3_ia32_gcc323
echo "source $VO_CMS_SW_DIR/cmsset_default.sh"
source $VO_CMS_SW_DIR/cmsset_default.sh
echo "<pre>"
echo "source $SW_DIR/cmsset_default.sh"
source $SW_DIR/cmsset_default.sh
result=$?
echo "</pre>"
echo
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment