-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge IB/CMSSW_11_1_X/master into IB/CMSSW_11_1_X/rootmaster.
- Loading branch information
Showing
4 changed files
with
14 additions
and
14 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,26 +1,26 @@ | ||
#!/bin/tcsh | ||
#CMSDIST_FILE_REVISION=1 | ||
setenv CRABCLINET_TYPE "" | ||
setenv CRABCLIENT_TYPE "" | ||
switch ("X$1Y") | ||
case XprodY: | ||
case XpreY: | ||
case XdevY: | ||
setenv CRABCLINET_TYPE "$1" | ||
setenv CRABCLIENT_TYPE "$1" | ||
breaksw | ||
case XY: | ||
setenv CRABCLINET_TYPE "prod" | ||
setenv CRABCLIENT_TYPE "prod" | ||
breaksw | ||
default: | ||
echo "ERROR: Invalid CRAB type '$1' provided. Valid values are prod, pre and dev." | ||
echo "Usage: $0 [prod|pre|dev]" | ||
breaksw | ||
endsw | ||
if (${?CRABCLINET_TYPE}) then | ||
if (${?CRABCLIENT_TYPE}) then | ||
set crab_shared_dir="@CMS_PATH@/share/cms/crab/@CRAB_COMMON_VERSION@" | ||
if (${?PYTHONPATH}) then | ||
setenv PYTHONPATH "${crab_shared_dir}/lib/${CRABCLINET_TYPE}:$PYTHONPATH" | ||
setenv PYTHONPATH "${crab_shared_dir}/lib/${CRABCLIENT_TYPE}:$PYTHONPATH" | ||
else | ||
setenv PYTHONPATH "${crab_shared_dir}/lib/${CRABCLINET_TYPE}" | ||
setenv PYTHONPATH "${crab_shared_dir}/lib/${CRABCLIENT_TYPE}" | ||
endif | ||
unset crab_shared_dir | ||
endif |
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,16 +1,16 @@ | ||
#!/bin/bash | ||
#CMSDIST_FILE_REVISION=1 | ||
case "X$1Y" in | ||
XprodY|XdevY|XpreY) CRABCLINET_TYPE="$1" ;; | ||
XY ) CRABCLINET_TYPE="prod" ;; | ||
XprodY|XdevY|XpreY) CRABCLIENT_TYPE="$1" ;; | ||
XY ) CRABCLIENT_TYPE="prod" ;; | ||
* ) | ||
echo "ERROR: Invalid CRAB type '$1' provided, valid values are prod, pre and dev." | ||
echo "Usage: $0 [prod|pre|dev]" | ||
return 1 | ||
;; | ||
esac | ||
export CRABCLINET_TYPE | ||
export CRABCLIENT_TYPE | ||
crab_shared_dir="@CMS_PATH@/share/cms/crab/@CRAB_COMMON_VERSION@" | ||
export PYTHONPATH="${crab_shared_dir}/lib/${CRABCLINET_TYPE}${PYTHONPATH:+:$PYTHONPATH}" | ||
complete -F _UseCrab_${CRABCLINET_TYPE} -o filenames crab | ||
export PYTHONPATH="${crab_shared_dir}/lib/${CRABCLIENT_TYPE}${PYTHONPATH:+:$PYTHONPATH}" | ||
complete -F _UseCrab_${CRABCLIENT_TYPE} -o filenames crab | ||
unset crab_shared_dir |
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