rbx-2.4.sh 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/bash
  2. fw_depends rvm
  3. RETCODE=$(fw_exists ${IROOT}/rbx-2.4.installed)
  4. [ ! "$RETCODE" == 0 ] || { \
  5. # Load environment variables
  6. source $IROOT/rbx-2.4.installed
  7. return 0; }
  8. # rvm stable [typically] only provides one version of rbx-2.4
  9. # update this when it changes
  10. RBX_VERSION=2.4.1
  11. # This version of RBX needs clang 3.4
  12. sudo apt-get -yq --force-yes install clang-3.4
  13. # We assume single-user installation as
  14. # done in our rvm.sh script and
  15. # in Travis-CI
  16. if [ "$TRAVIS" = "true" ]
  17. then
  18. # Rubinus cannot find libc during configure unless
  19. # you specify bash as the shell.
  20. SHELL="/bin/bash" rvmsudo rvm install rbx-$RBX_VERSION
  21. # Bundler is SOMETIMES missing... not sure why.
  22. SHELL="/bin/bash" rvmsudo rvm rbx-$RBX_VERSION do gem install bundler
  23. else
  24. SHELL="/bin/bash" rvm install rbx-$RBX_VERSION
  25. # Bundler is SOMETIMES missing... not sure why.
  26. SHELL="/bin/bash" rvm rbx-$RBX_VERSION do gem install bundler
  27. fi
  28. echo "export LC_ALL=en_US.UTF-8" > $IROOT/rbx-2.4.installed
  29. echo "export LANG=en_US.UTF-8" >> $IROOT/rbx-2.4.installed
  30. echo "export RBX_VERSION=${RBX_VERSION}" >> $IROOT/rbx-2.4.installed
  31. source $IROOT/rbx-2.4.installed