forked from fasrc/helmod
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.sh
30 lines (23 loc) · 1.15 KB
/
setup.sh
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
#--- basic config -- adjust as needed
#the location of production fasrcsw clone
export FASRCSW_PROD=/nfs/software/helmod
#default compilers and mpi stacks
#update these as versions increase.
#this assumes each FASRCSW_MPIS has been built with each FASRCSW_COMPS
#export FASRCSW_COMPS="intel/15.0.0-fasrc01 gcc/4.8.2-fasrc01"
export FASRCSW_COMPS="gcc/5.3.0-fasrc01"
#export FASRCSW_MPIS="openmpi/1.8.3-fasrc02 mvapich2/2.0-fasrc03"
export FASRCSW_MPIS="mvapich2/2.2-fasrc01"
#the build host
export FASRCSW_BUILD_HOST=rpmbuild-centos6
test "$(hostname -s)" != "$FASRCSW_BUILD_HOST" && echo "WARNING: the current host is not the canonical build host, $FASRCSW_BUILD_HOST" >&2
#rpm packager credits
export FASRCSW_AUTHOR="$(getent passwd $USER | cut -d: -f5), Duke Center for Genomics and Computational Biology <gcb-help@duke.edu>"
#--- environment setup
#set the location of this clone
if [ -z "$BASH_SOURCE" ]; then
echo "*** ERROR *** your bash is too old -- there's no BASH_SOURCE in the environment" >&2
return 1
fi
export FASRCSW_DEV="$(dirname "$(readlink -e "$BASH_SOURCE")")" #(the abs path of the dir containing this setup.sh)
export PATH="$FASRCSW_DEV/bin:$PATH"