Skip to content

Commit

Permalink
Merge pull request #7534 from smuzaffar/CMSSW_6_2_X_SLHC
Browse files Browse the repository at this point in the history
use release/glimpse is exists otherwise fallback to release/src/glimpse
  • Loading branch information
cmsbuild committed Feb 5, 2015
2 parents 43a59cc + 255d002 commit 3f1e783
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Utilities/ReleaseScripts/scripts/cmsglimpse
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
CURRENT_SCRAM_PROJECT=$(echo $SCRAMRT_SET | cut -d: -f2)
CURRENT_SRC_AREA=$(echo $CMSSW_RELEASE_BASE)/src
CURRENT_SRC_AREA=$(echo $CMSSW_RELEASE_BASE)
args=
action=

Expand Down Expand Up @@ -32,7 +32,7 @@ do
;;
-H )[ $# -gt 1 ] || { echo "Option \`$1' requires an argument" 1>&2; exit 1; }
CURRENT_SCRAM_PROJECT=$2; shift; shift
CURRENT_SRC_AREA=$(CMS_PATH)/$(SCRAM_ARCH)/cms/cmssw/$(CURRENT_SCRAM_PROJECT)/src
CURRENT_SRC_AREA=$(scram --arch $SCRAM_ARCH list -c $CURRENT_SCRAM_PROJECT | awk '{print $3}')
;;
* ) args="$args $1"; shift;;
esac
Expand All @@ -45,6 +45,10 @@ then
exit 1
fi

if [ ! -e $CURRENT_SRC_AREA/.glimpse_full ]
then
CURRENT_SRC_AREA=$CURRENT_SRC_AREA/src
fi
case $action in
full )
if [ ! -e $CURRENT_SRC_AREA/.glimpse_full/.glimpse_index ]
Expand Down

0 comments on commit 3f1e783

Please sign in to comment.