diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-05-30 11:07:47 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-05-30 11:07:47 +0200 |
commit | e869a714da6cc4611305a05f971d27e913f9cf46 (patch) | |
tree | e866ac2de72c08027afb212e26875b68a744d6b6 /openbabel.sh | |
parent | a552b6d33c6a7b0017f76686491f0859fc6c6dcf (diff) |
Fixed test
Diffstat (limited to 'openbabel.sh')
-rwxr-xr-x | openbabel.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openbabel.sh b/openbabel.sh index f6d303b..48d752d 100755 --- a/openbabel.sh +++ b/openbabel.sh @@ -87,14 +87,16 @@ else fi if ! $OB_DONE ; then - cd "/tmp/$OB_VER/scripts/ruby/" + OB_SRC_DIR="/tmp/$OB_VER/scripts/ruby/" + CDIR=`pwd` + cd "$OB_SRC_DIR" cmd="ruby extconf.rb --with-openbabel-include=$OB_DEST/include/openbabel-2.0 --with-openbabel-lib=$OB_DEST/lib" && run_cmd "$cmd" "Code" cmd="make" && run_cmd "$cmd" "Make" cmd="cp openbabel.so $OB_DEST_BINDINGS" && run_cmd "$cmd" "Install" cmd="ln -s $OB_DEST_BINDINGS/openbabel.so $RUBY_DEST/lib/ruby/site_ruby/1.8/`uname -m`-linux/" && run_cmd "$cmd" "Link" cd "$DIR" . "`pwd`/utils.sh" - cd - + cd "$CDIR" cmd="ruby test-ob-rb.rb" && run_cmd "$cmd" "Load" fi |