diff options
author | Andreas Maunz <andreas@maunz.de> | 2012-03-28 16:45:17 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2012-03-28 16:45:17 +0200 |
commit | f1ec9c43ad3e06c1d06e6121a84636b2de9f42e5 (patch) | |
tree | a3074895dd593916e48a6a75a408baeb1b3b54b2 /utils.sh | |
parent | 81edb34661f9ae2715a939e11923d86b4262fe43 (diff) |
Removed manual OB
Diffstat (limited to 'utils.sh')
-rwxr-xr-x | utils.sh | 19 |
1 files changed, 1 insertions, 18 deletions
@@ -24,7 +24,7 @@ run_cmd () tail -10 "$LOG" exit 1 fi - printf " [ \033[32m%s\033[m ]\n" "OK" + printf " [ \033[32m%s\033[m ]\n" "OK" } @@ -52,23 +52,6 @@ install_ruby() { } -install_ob_ruby() { - printf "\n%50s\n" "OB RUBY BINDINGS" - local DIR=`pwd` - check_utils "rbenv make" - SRC_DIR=$(dirname $(find $OT_PREFIX -name openbabel-ruby.cpp)) - [ -d "$SRC_DIR" ] || (echo "Sources not found." 1>&2 && exit 1) - cd $SRC_DIR - cmd="$RBENV local $RUBY_NUM_VER" && run_cmd "$cmd" "Configure Ruby" - sed -i 's/Init_OpenBabel/Init_openbabel/g' openbabel-ruby.cpp # apply fix - cmd="ruby extconf.rb --with-openbabel-include=../../include --with-openbabel-lib=../../src/.libs" && run_cmd "$cmd" "Extconf ruby bindings" - cmd="$MAKE" && run_cmd "$cmd" "Make OB ruby bindings" - cmd="$MAKE install" && run_cmd "$cmd" "Install OB ruby bindings" - cd $DIR - cmd="$RBENV rehash" && run_cmd "$cmd" "Rbenv rehash" -} - - install_with_bundler() { printf "\n%50s\n" "INSTALL" check_utils "gem rbenv" |