Skip to content

Commit

Permalink
Merge pull request #3175 from alja/from-CMSSW_6_2_7
Browse files Browse the repository at this point in the history
6_2_X cmsShow -- simplify detection of cmssw environment.
  • Loading branch information
davidlange6 committed Apr 15, 2014
2 parents a828f2d + eedfbd2 commit 4333fbf
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions Fireworks/Core/scripts/cmsShow
Original file line number Diff line number Diff line change
Expand Up @@ -96,20 +96,7 @@ setupEnv()
fi

# see if we are running in standalone mode
FROM_RELEASE=""
if [ -n "$CMSSW_BASE" ] && [ `expr "$SHELLDIR" : "$CMSSW_BASE"` -gt 0 ]; then
FROM_RELEASE='true'
elif [ -n "$CMSSW_RELEASE_BASE" ]; then
if [ `expr "$SHELLDIR" : "$CMSSW_RELEASE_BASE"` -gt 0 ]; then
FROM_RELEASE='true'
else
NO_PATCH_CMSSWRB=`echo $CMSSW_RELEASE_BASE | sed 's/cmssw-patch/cmssw/; s/\(CMSSW_[0-9_]*\)_patch[0-9]\+/\1/;'`
if [ `expr "$SHELLDIR" : "$NO_PATCH_CMSSWRB"` -gt 0 ]; then
FROM_RELEASE='true'
fi
fi
fi
if [ -z "$FROM_RELEASE" ]; then
if [ ! -d $SHELLDIR/../../.SCRAM ] ; then
export CMSSW_BASE=$SHELLDIR
export CMSSW_SEARCH_PATH="."
export CMSSW_DATA_PATH="."
Expand Down

0 comments on commit 4333fbf

Please sign in to comment.