cern_env.csh 1.84 KB
Newer Older
Marco Clemencic's avatar
Marco Clemencic committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/printf you must "source %s"\n
###############################################################################
# (c) Copyright 2019 CERN for the benefit of the LHCb Collaboration           #
#                                                                             #
# This software is distributed under the terms of the GNU General Public      #
# Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING".   #
#                                                                             #
# In applying this licence, CERN does not waive the privileges and immunities #
# granted to it by virtue of its status as an Intergovernmental Organization  #
# or submit itself to any jurisdiction.                                       #
###############################################################################
# CERN specific environment
setenv LHCBDEV /afs/cern.ch/lhcb/software/DEV
setenv LHCBDOC /eos/project/l/lhcbwebsites/www/projects
setenv LHCBNIGHTLIES /cvmfs/lhcbdev.cern.ch/nightlies

# For grid usage
Marco Clemencic's avatar
Marco Clemencic committed
18
if ( ! $?X509_CERT_DIR ) then
Marco Clemencic's avatar
Marco Clemencic committed
19
20
  if ( -d /etc/grid-security/certificates ) then
    setenv X509_CERT_DIR /etc/grid-security/certificates
Ben Couturier's avatar
Ben Couturier committed
21
  else if ( -d /cvmfs/lhcb.cern.ch/etc/grid-security/certificates ) then
Marco Clemencic's avatar
Marco Clemencic committed
22
    setenv X509_CERT_DIR /cvmfs/lhcb.cern.ch/etc/grid-security/certificates
Ben Couturier's avatar
Ben Couturier committed
23
24
  endif
endif
Marco Clemencic's avatar
Marco Clemencic committed
25
26
27
28

if ( ! $?X509_VOMS_DIR ) then
  if ( -d /etc/grid-security/vomsdir ) then
    setenv X509_VOMS_DIR /etc/grid-security/vomsdir
Ben Couturier's avatar
Ben Couturier committed
29
  else if ( -d /cvmfs/lhcb.cern.ch/etc/grid-security/vomsdir ) then
Marco Clemencic's avatar
Marco Clemencic committed
30
    setenv X509_VOMS_DIR /cvmfs/lhcb.cern.ch/etc/grid-security/vomsdir
Ben Couturier's avatar
Ben Couturier committed
31
32
  endif
endif
Marco Clemencic's avatar
Marco Clemencic committed
33
34
35
36
37
38

# Variable to access the LHCb CASTOR instance
setenv STAGE_HOST castorlhcb.cern.ch

# LHCb Emacs mode
setenv EMACSDIR /cvmfs/lhcb.cern.ch/lib/lhcb/TOOLS/Tools/Emacs/pro
39
40
41

# Make sure virtualenv does not overwrite your prompt
setenv VIRTUAL_ENV_DISABLE_PROMPT 1