Commit 4a7d91ee authored by Andrea Sciaba's avatar Andrea Sciaba
Browse files

Compact version of swinst

parent 1f564312
......@@ -2,7 +2,6 @@
cmsver=$1
echo "<pre>"
echo "scramv1 project CMSSW $cmsver"
case $cmsver in
CMSSW_0* | CMSSW_1_[1-4]*)
......@@ -23,35 +22,26 @@ case $cmsver in
esac
export SCRAM_ARCH=$arch
export BUILD_ARCH=$arch
pwd
scramv1 project CMSSW $cmsver
projectresult=$?
echo "</pre>"
if [ $projectresult != 0 ]
then
echo "<p><strong>"
echo "CMSSW version $cmsver project configuration failed"
echo "</strong></p>"
exit 1
else
echo "<p>Checking version $cmsver runtime environment</p>"
echo "<pre>"
echo "eval \`scramv1 runtime -sh\`"
echo "Checking version $cmsver runtime environment"
cd $cmsver/src
eval `scramv1 runtime -sh`
runtresult=$?
echo "</pre>"
cd ../..
if [ $runtresult != 0 ]
then
echo "<p><strong>"
echo "CMSSW version $cmsver runtime environment configuration failed"
echo "</strong></p>"
exit 1
else
echo "<p>CMSSW version $cmsver configured correctly</p>"
echo "CMSSW version $cmsver configured correctly"
fi
fi
exit 0
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