Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use release/glimpse is exists otherwise fallback to release/src/glimpse #7537

Merged
merged 1 commit into from Feb 9, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions Utilities/ReleaseScripts/scripts/cmsglimpse
@@ -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