From 7acb3bc7db272581b9055c8e073aa7b07206f6fe Mon Sep 17 00:00:00 2001 From: Andreas Maunz Date: Wed, 23 Nov 2011 09:49:21 +0100 Subject: Minor improvements --- opentox-webservices.sh | 8 ++++---- update | 16 ---------------- 2 files changed, 4 insertions(+), 20 deletions(-) delete mode 100755 update diff --git a/opentox-webservices.sh b/opentox-webservices.sh index cc53d04..88f864c 100755 --- a/opentox-webservices.sh +++ b/opentox-webservices.sh @@ -65,21 +65,21 @@ 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 - >>$LOG 2>&1 cd "libfminer/liblast">>$LOG 2>&1 $GIT checkout $OT_BRANCH>>$LOG 2>&1 $GIT pull >>$LOG 2>&1 -cd - +cd - >>$LOG 2>&1 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 cmd="make ruby" && run_cmd "$cmd" "Make BBRC" -cd - +cd - >>$LOG 2>&1 cd "libfminer/liblast">>$LOG 2>&1 cmd="make ruby" && run_cmd "$cmd" "Make LAST" -cd - +cd - >>$LOG 2>&1 cd "last-utils">>$LOG 2>&1 $GIT checkout $OT_BRANCH>>$LOG 2>&1 $GIT pull >>$LOG 2>&1 diff --git a/update b/update deleted file mode 100755 index 77183ed..0000000 --- a/update +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -. /etc/profile -gem update opentox-ruby -dir=`pwd` -cd /var/www/opentox -for s in *; do - echo $s - cd $s - git pull - cd - -done -cd /var/www/algorithm -rake fminer:update -kill `cat /opt/nginx/logs/nginx.pid` -/opt/nginx/sbin/nginx -cd $dir -- cgit v1.2.3