summaryrefslogtreecommitdiff
path: root/4store-install
diff options
context:
space:
mode:
Diffstat (limited to '4store-install')
-rwxr-xr-x4store-install9
1 files changed, 5 insertions, 4 deletions
diff --git a/4store-install b/4store-install
index 4f70582..c343d4f 100755
--- a/4store-install
+++ b/4store-install
@@ -14,11 +14,12 @@ check_utils "git make tar wget"
# Build
cd $OT_PREFIX/tmp/
-([ -d $SELF ] && cd $SELF && cmd="$GIT pull" && run_cmd "$cmd" "Git pull") || (cmd="$GIT clone https://github.com/garlik/$SELF" && run_cmd "$cmd" "Git clone")
-cd $SELF
-#cmd="$GIT checkout -b ist c3d8593c39dc04a39e272f729e486c1576f6aeba" && run_cmd "$cmd" "checkout to particular commit"
-cmd="./autogen.sh" && run_cmd "$cmd" "Autogen"
+cmd="$WGET $FOUR_STORE_URL/$FOUR_STORE_VER.tar.gz" && run_cmd "$cmd" "Download"
export FST=$OT_PREFIX/4S
+cmd="$TAR xvzf $FOUR_STORE_VER.tar.gz" && run_cmd "$cmd" "Unpack"
+rm $FOUR_STORE_VER.tar.gz
+cd $FOUR_STORE_VER
+cmd="./autogen.sh" && run_cmd "$cmd" "Autogen"
cmd="./configure --enable-dedup-insert --prefix=$FST --exec-prefix=$FST --with-storage-path=$FST/var/lib --with-config-file=$FST/$SELF.conf -with-http-log=$FST/log CFLAGS=-O2 CPPFLAGS=-O3" && run_cmd "$cmd" "Configure"
cmd="make" && run_cmd "$cmd" "Make"
cmd="make install" && run_cmd "$cmd" "Make Install"