forked from clear-code/rurema-search
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.sh
executable file
·44 lines (35 loc) · 844 Bytes
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
base_dir=$(cd "$(dirname "$0")" && pwd)
: ${RUBY:=ruby}
run()
{
"$@"
if test $? -ne 0; then
echo "Failed $@"
exit 1
fi
}
set -x
run ${RUBY} -S gem install rack pkg-config
run cd ${base_dir}/..
run git clone https://github.com/rurema/bitclust.git bitclust
run git clone https://github.com/rurema/doctree.git doctree
run git clone https://github.com/groonga/groonga.git
run cd groonga
run ./autogen.sh
run ./configure \
--prefix=${base_dir}/local \
--disable-document \
--disable-groonga-httpd
run make
run make install
run cd -
run git clone https://github.com/ranguba/rroonga.git
run cd rroonga
run export PKG_CONFIG_PATH=${base_dir}/local/lib/pkgconfig
run ${RUBY} extconf.rb
run make
run cd -
run git clone https://github.com/ranguba/racknga.git
run cd rurema-search
run ./update.sh