summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-06-20 14:54:42 +0200
committerAndreas Maunz <andreas@maunz.de>2011-06-20 14:54:42 +0200
commitdabea8ef8e26260a648b0d5fde6c43e378e3ae79 (patch)
tree4a79f381fd9a17b842bc37aad9300b753d6c7e97
parent496f6c00e0b7a3be998abbfba0ef3eadd134ae32 (diff)
Fixed branches
-rwxr-xr-xopentox-webservices.sh20
1 files changed, 8 insertions, 12 deletions
diff --git a/opentox-webservices.sh b/opentox-webservices.sh
index 932ee7e..811d4bc 100755
--- a/opentox-webservices.sh
+++ b/opentox-webservices.sh
@@ -55,31 +55,27 @@ for s in compound dataset algorithm model toxcreate task validation; do
cd - >>$LOG 2>&1
done
-# validation service
-#git clone http://github.com/mguetlein/opentox-validation.git validation
-#cd /var/www/opentox/validation
-#git checkout -t origin/test
-#gem install ruby-plot
-#mkdir -p public
-#ln -s /var/www/opentox/validation/public /var/www/validation
-
# fminer etc
cmd="test -f $HOME/.opentox/config/production.yaml" && run_cmd "$cmd" "Config present"
cd "$WWW_DEST/opentox/algorithm" >>$LOG 2>&1
cmd="$GIT submodule init" && run_cmd "$cmd" "Fminer Init"
cmd="$GIT submodule update" && run_cmd "$cmd" "Fminer Update"
+cd "libfminer/libbbrc">>$LOG 2>&1
+$GIT checkout $OT_BRANCH>>$LOG 2>&1
+$GIT pull >>$LOG 2>&1
+cd -
+cd "libfminer/liblast">>$LOG 2>&1
+$GIT checkout $OT_BRANCH>>$LOG 2>&1
+$GIT pull >>$LOG 2>&1
+cd -
for mylib in bbrc last; do
cmd="sed -i 's,^INCLUDE_OB.*,INCLUDE_OB\ =\ -I$OB_DEST/include/openbabel-2.0,g' $WWW_DEST/opentox/algorithm/libfminer/lib$mylib/Makefile; sed -i 's,^LDFLAGS_OB.*,LDFLAGS_OB\ =\ -L$OB_DEST/lib,g' $WWW_DEST/opentox/algorithm/libfminer/lib$mylib/Makefile" && run_cmd "$cmd" "Makefile $mylib (OB)"
cmd="sed -i 's,^INCLUDE_RB.*,INCLUDE_RB\ =\ -I$RUBY_DEST/lib/ruby/1.8/`uname -m`-linux,g' $WWW_DEST/opentox/algorithm/libfminer/lib$mylib/Makefile" && run_cmd "$cmd" "Makefile $mylib (RB)"
done
cd "libfminer/libbbrc">>$LOG 2>&1
-$GIT checkout $OT_BRANCH>>$LOG 2>&1
-$GIT pull >>$LOG 2>&1
cmd="make ruby" && run_cmd "$cmd" "Make BBRC"
cd ->>$LOG 2>&1
cd "libfminer/liblast">>$LOG 2>&1
-$GIT checkout $OT_BRANCH>>$LOG 2>&1
-$GIT pull >>$LOG 2>&1
cmd="make ruby" && run_cmd "$cmd" "Make LAST"
cd ->>$LOG 2>&1
cd "last-utils">>$LOG 2>&1