forked from h2oai/h2o-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimple_minicran.sh
executable file
·82 lines (67 loc) · 1.67 KB
/
simple_minicran.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
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
77
78
79
80
81
#!/bin/bash
#
# First run this tool inside a bash shell to build the minicran.
# The Windows GIT client comes with a nice bash shell.
#
#
# Then from inside R:
#
# options(repos = "file:///C:/Users/h2o/Desktop/tmp/minicran")
# install.packages("h2o")
# library(h2o)
# h = h2o.init()
# demo(h2o.glm)
#
set -x
set -e
r_version=3.0
# Windows
# -------
os=windows
ext=.zip
# Mac
# ---
# os=macosx
# ext=.tgz
branch=rel-jacobi
major=2
minor=2
incremental=0
build=6
project_version=${major}.${minor}.${incremental}.${build}
# binary dir
d=minicran/bin/${os}/contrib/${r_version}
# source dir
sd=minicran/src/contrib
mkdir minicran
mkdir -p ${d}
mkdir -p ${sd}
f=PACKAGES
LIST=${d}/${f}
curl -o ${f} http://cran.r-project.org/bin/${os}/contrib/${r_version}/${f}
mv ${f} ${LIST}.tmp
curl -o ${f} http://h2o-release.s3.amazonaws.com/h2o/${branch}/${build}/R/bin/${os}/contrib/${r_version}/${f}
cat ${f} > ${LIST}.tmp2
echo "" >> ${LIST}.tmp2
cat ${LIST}.tmp >> ${LIST}.tmp2
mv ${LIST}.tmp2 ${LIST}
rm ${LIST}.tmp
rm ${f}
gzip -c ${LIST} > ${LIST}.gz
cp ${LIST} ${sd}
cp ${LIST} ${sd}
f=h2o_${project_version}${ext}
curl -o ${f} http://h2o-release.s3.amazonaws.com/h2o/${branch}/${build}/R/bin/${os}/contrib/${r_version}/${f}
mv ${f} ${d}/${f}
f=bitops_1.0-6${ext}
curl -o ${f} http://cran.r-project.org/bin/${os}/contrib/${r_version}/${f}
mv ${f} ${d}/${f}
f=RCurl_1.95-4.1${ext}
curl -o ${f} http://cran.r-project.org/bin/${os}/contrib/${r_version}/${f}
mv ${f} ${d}/${f}
f=rjson_0.2.13${ext}
curl -o ${f} http://cran.r-project.org/bin/${os}/contrib/${r_version}/${f}
mv ${f} ${d}/${f}
f=statmod_1.4.18${ext}
curl -o ${f} http://cran.r-project.org/bin/${os}/contrib/${r_version}/${f}
mv ${f} ${d}/${f}