-
Notifications
You must be signed in to change notification settings - Fork 27
/
EPACTS-3.3.0_install
executable file
·51 lines (40 loc) · 1.05 KB
/
EPACTS-3.3.0_install
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
#!/usr/bin/env bash
###############################################
# Installing EPACTS 3.3.0
#
# by Brian Alston, June 2018
#
# Using Ian's require function to load modules
#
#
VERSION=${VERSION:-3.3.0}
INSTALL_PREFIX=${INSTALL_PREFIX:-/shared/ucl/apps/EPACTS/${VERSION}}
SRC_ARCHIVE=${SRC_ARCHIVE:- https://github.com/statgen/EPACTS.git}
export PATH=$INSTALL_PREFIX/bin:$PATH
dirname=$(dirname $0 2>/dev/null || pwd)
INCLUDES_DIR=${INCLUDES_DIR:-${dirname}/includes}
source ${INCLUDES_DIR}/module_maker_inc.sh
source ${INCLUDES_DIR}/require_inc.sh
require gcc-libs/4.9.2
require compilers/gnu/4.9.2
require r/recommended
require gnuplot/5.0.1
require groff/1.22.3/gnu-4.9.2
require autoconf/2.69
require automake/1.16.1
temp_dir=`mktemp -d -p /dev/shm`
# temp_dir='/home/ccspapp/Software/EPACTS'
echo "Building in $temp_dir ..."
cd $temp_dir
module list
read -p "Press [Enter] key to start ..."
cd $temp_dir
git clone $SRC_ARCHIVE
cd EPACTS
aclocal
autoconf
automake --add-missing
./configure --prefix=$INSTALL_PREFIX
make
# No make check provided.
make install