-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathINSTALL
executable file
·76 lines (65 loc) · 1.87 KB
/
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/bash
# woland install script 1.01
# WOLAND PREREQUISITES
# The following software must be present before installing Woland.
# PERL
# Perl is required to run Woland. Minimal recommended Perl version is 5.17.
# To check Perl version type:
# $ perl -v
#
# R
# You also need R in order to generate reports.
# Minimal recommended R version is 3.1.
# test if there is an argument
if [ "$#" != "1" ]; then
echo " "
echo "INSTALL"
echo " purpose: install woland 1.01"
echo " WARNING: you should first git clone woland or uncompress woland source files. "
echo " usage: ./INSTALL [woland directory]"
echo " example: ./INSTALL /home/user/tools/woland/"
echo " "
exit 1
fi
# convert relative path to absolute path
echo -n "SETTING PATH: $PREFIX... "
ABSPATH=`cd $1; pwd`
ABSPATH="$ABSPATH/"
echo "path is now: $ABSPATH"
if [ -e "Makefile.local" ];
then LATERRUN="1";
fi
# installing cpanm & modules
echo -n "INSTALLING cpanminus module... "
perl -MCPAN -Mlocal::lib -e 'App:cpanminus'
echo -n "INSTALLING Bio::DB::Fasta... "
cpanm Bio::DB::Fasta
echo -n "INSTALLING Cwd... "
cpanm Cwd
echo -n "INSTALLING List::Util... "
cpanm List::Util
echo -n "INSTALLING IPC::System::Simple... "
cpanm IPC::System::Simple
echo -n "INSTALLING IPC::Run... "
cpanm IPC::Run
echo -n "INSTALLING Parallel::ForkManager... "
cpanm Parallel::ForkManager
echo -n "INSTALLING Regexp::Common... "
cpanm Regexp::Common
echo -n "INSTALLING Text::Balanced... "
cpanm Text::Balanced
echo -n "INSTALLING Text::Wrap... "
cpanm Text::Wrap
echo -n "INSTALLING Statistics::R... "
cpanm Statistics::R --force
echo -n "INSTALLING Getopt::ArgParse... "
cpanm Getopt::ArgParse
echo -n "INSTALLING Moo... "
cpanm Moo
echo -n "INSTALLING List::MoreUtils.. "
cpanm List::MoreUtils
# installing R & libraries
echo -n "INSTALLING R Packages... "
Rscript $ABSPATH INSTALL.R
echo "DONE"
exit 0