Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
typo: rename CRABCLINET_TYPE to CRABCLIENT_TYPE
- Loading branch information
Showing
2 changed files
with
8 additions
and
8 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