forked from GrossfieldLab/loos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.csh-pre
64 lines (54 loc) · 1.87 KB
/
setup.csh-pre
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
64
# Setup environment for bourne-shell-like shells...
#
# This file is part of LOOS.
#
# LOOS (Lightweight Object-Oriented Structure library)
# Copyright (c) 2012 Tod D. Romo, Grossfield Lab
# Department of Biochemistry and Biophysics
# School of Medicine & Dentistry, University of Rochester
#
# This package (LOOS) is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation under version 3 of the License.
#
# This package is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
### This will be automatically set to where LOOS is built or installed. If
#necessary,
### change manually...
setenv LOOS "$loos_path"
setenv LOOS_LIBPATH "$libpath"
setenv LOOS_CPPPATH "$cpppath"
setenv LOOS_LINKFLAGS "$linkflags"
setenv LOOS_LIBS "$libs"
setenv LOOS_CCFLAGS "$ccflags"
setenv LOOS_CXX "$loos_cxx"
setenv PATH "$tool_path":"$$PATH"
set SYSTEM=`uname`
if ( "$$SYSTEM" == "Darwin" ) then
if ($$?DYLD_BACKUP_LIBRARY_PATH) then
setenv DYLD_BACKUP_LIBRARY_PATH "$ldlibrary":"$${DYLD_BACKUP_LIBRARY_PATH}"
else
setenv DYLD_BACKUP_LIBRARY_PATH "$ldlibrary"
endif
else
if ($$?LD_LIBRARY_PATH) then
setenv LD_LIBRARY_PATH "$ldlibrary":"$${LD_LIBRARY_PATH}"
else
setenv LD_LIBRARY_PATH "$ldlibrary"
endif
endif
set CYGWIN=`uname | grep -q '^CYGWIN'`
if ($$?CYGWIN) then
setenv PATH "$ldlibrary":"$${PATH}"
endif
if ($$?PYTHONPATH) then
setenv PYTHONPATH "$loos_pythonpath":"$$PYTHONPATH"
else
setenv PYTHONPATH "$loos_pythonpath"
endif