summaryrefslogtreecommitdiff
path: root/opentox-ruby.sh
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-03-30 13:18:47 +0200
committerAndreas Maunz <andreas@maunz.de>2011-03-30 13:18:47 +0200
commitf043da5009a8358df1b33789b288aee3d1cb9c70 (patch)
tree4a72fe00cf5db693e7e1e4d221f547ee071ef86a /opentox-ruby.sh
parent3175afdf422f54e11eadecb535a52ecc00119418 (diff)
opentox-ruby
Diffstat (limited to 'opentox-ruby.sh')
-rwxr-xr-xopentox-ruby.sh24
1 files changed, 10 insertions, 14 deletions
diff --git a/opentox-ruby.sh b/opentox-ruby.sh
index ae8e08e..b4156c5 100755
--- a/opentox-ruby.sh
+++ b/opentox-ruby.sh
@@ -52,19 +52,15 @@ mkdir -p "$HOME/.opentox/log"
sed -e "s/SERVERNAME/$servername/;s/ESCAPEDSERVERNAME/$escapedservername/;s/LOGGER/$logger/;s/AA/$aa/" production.yaml > $HOME/.opentox/config/production.yaml
sed -e "s/SERVERNAME/$servername/;s/ESCAPEDSERVERNAME/$escapedservername/;s/LOGGER/$logger/;s/AA/$aa/" aa-$install.yaml >> $HOME/.opentox/config/production.yaml
-# checkout development version and link lib to opentox-ruby gem
-if [ $branch = "development" ]
-then
- mkdir -p $WWW_DEST/opentox
- cd $WWW_DEST/opentox
- $GIT clone "http://github.com/opentox/opentox-ruby.git "
- cd opentox-ruby
- $GIT checkout -t "origin/development"
- $GEM install jeweler
- $RAKE install
- GEM_LIB=`$GEM which opentox-ruby | sed 's/\/opentox-ruby.rb//'`
- mv "$GEM_LIB" "$GEM_LIB~"
- ln -s "$WWW_DEST/opentox/opentox-ruby/lib" "$GEM_LIB"
-fi
+mkdir -p $WWW_DEST/opentox
+cd $WWW_DEST/opentox
+$GIT clone "http://github.com/opentox/opentox-ruby.git "
+cd opentox-ruby
+$GIT checkout -t "origin/development"
+$GEM install jeweler
+$RAKE install
+GEM_LIB=`$GEM which opentox-ruby | sed 's/\/opentox-ruby.rb//'`
+mv "$GEM_LIB" "$GEM_LIB~"
+ln -s "$WWW_DEST/opentox/opentox-ruby/lib" "$GEM_LIB"
cd "$DIR"