-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.csh
63 lines (50 loc) · 2.56 KB
/
setup.csh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#! /bin/csh
# $Id$
###########################################################################
# @Project: SFrame - ROOT-based analysis framework for ATLAS #
# #
# @author Stefan Ask <Stefan.Ask@cern.ch> - Manchester #
# @author David Berge <David.Berge@cern.ch> - CERN #
# @author Johannes Haller <Johannes.Haller@cern.ch> - Hamburg #
# @author A. Krasznahorkay <Attila.Krasznahorkay@cern.ch> - NYU/Debrecen #
# #
# Script that has to be sourced before compiling/running SFrame. #
# #
###########################################################################
# Greet the user
echo "Setting up environment for compiling/running SFrame"
# specify the SFRAME base directory, i.e. the directory in which this file lives
# do it this way so it can be sourced from anywhere
set rootdir = `pwd` # may be relative path
setenv SFRAME_DIR `cd $rootdir && pwd` # ensure absolute path
# Modify to describe your directory structure. Default is to use the a structure
# where all directories are below the SFrame base directory specified above
setenv SFRAME_BIN_PATH ${SFRAME_DIR}/bin
setenv SFRAME_LIB_PATH ${SFRAME_DIR}/lib
# Check if bin/lib/include directories exist, if not create them
if ( ! -d ${SFRAME_BIN_PATH} ) then
echo Directory ${SFRAME_BIN_PATH} does not exist .. creating it
mkdir ${SFRAME_BIN_PATH}
endif
if ( ! -d ${SFRAME_LIB_PATH} ) then
echo Directory ${SFRAME_LIB_PATH} does not exist .. creating it
mkdir ${SFRAME_LIB_PATH}
endif
# The Makefiles depend only on the root-config script to use ROOT,
# so make sure that is available
if ( `which root-config` == "" ) then
echo "Error: ROOT environment doesn't seem to be configured!"
endif
if ( `root-config --platform` == "macosx" ) then
# With Fink ROOT installations, DYLD_LIBRARY_PATH doesn't have
# to be defined for ROOT to work. So let's leave the test for it...
setenv DYLD_LIBRARY_PATH ${SFRAME_LIB_PATH}:${DYLD_LIBRARY_PATH}
else
if !( $?LD_LIBRARY_PATH ) then
echo "Warning: so far you haven't setup your ROOT enviroment properly (no LD_LIBRARY_PATH): SFrame will not work"
endif
setenv LD_LIBRARY_PATH ${SFRAME_LIB_PATH}:${LD_LIBRARY_PATH}
endif
setenv PATH ${SFRAME_BIN_PATH}:${PATH}
setenv PYTHONPATH ${SFRAME_DIR}/python:${PYTHONPATH}
setenv PAR_PATH ${SFRAME_DIR}/:${SFRAME_LIB_PATH}