-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4608 from mmascher/master
Add init-light script for lightweight client; fixed few bugs; updated…
- Loading branch information
Showing
5 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
*.pyc | ||
.project | ||
.pydevproject | ||
tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
if [ -z "$CRAB_SOURCE_SCRIPT" ]; then | ||
CRAB_SOURCE_SCRIPT="/cvmfs/cms.cern.ch/crab3/crab.sh" | ||
fi | ||
|
||
function getVariableValue { | ||
VARNAME=$1 | ||
SUBDIR=$2 | ||
sh -c "source $CRAB_SOURCE_SCRIPT >/dev/null 2>/dev/null; if [ \$? -eq 0 ] && [ -d $VARNAME ]; \ | ||
then echo $VARNAME/$SUBDIR; else exit 1; fi" | ||
} | ||
|
||
CRAB3_BIN_ROOT=$(getVariableValue \$CRABCLIENT_ROOT bin) | ||
CRAB3_ETC_ROOT=$(getVariableValue \$CRABCLIENT_ROOT etc) | ||
CRAB3_PY_ROOT=$(getVariableValue \$CRABCLIENT_ROOT \$PYTHON_LIB_SITE_PACKAGES) | ||
DBS3_PY_ROOT=$(getVariableValue \$DBS3_CLIENT_ROOT \$PYTHON_LIB_SITE_PACKAGES) | ||
DBS3_PYCURL_ROOT=$(getVariableValue \$DBS3_PYCURL_CLIENT_ROOT \$PYTHON_LIB_SITE_PACKAGES) | ||
|
||
export PYTHONPATH=$PYTHONPATH:$CRAB3_PY_ROOT:$DBS3_PY_ROOT:$DBS3_PYCURL_ROOT | ||
export PATH=$PATH:$CRAB3_BIN_ROOT | ||
if [ -n "$BASH" ]; then | ||
echo bash is set | ||
source $CRAB3_ETC_ROOT/crab-bash-completion.sh | ||
fi | ||
|
||
#[mmascher@lxplus007 ~]$ export CRAB_SOURCE_SCRIPT=/cvmfs/cms.cern.ch/crab3/crab_pre.sh | ||
#[mmascher@lxplus007 ~]$ source ~/repos/CRABClient/init-light.sh | ||
#[mmascher@lxplus007 ~]$ crab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters