ruby-2.0.0.sh 664 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. fw_depends rvm
  3. VERSION=2.0.0-p0
  4. RETCODE=$(fw_exists ${IROOT}/ruby-${VERSION}.installed)
  5. [ ! "$RETCODE" == 0 ] || { \
  6. # Load environment variables
  7. source $IROOT/ruby-$VERSION.installed
  8. return 0; }
  9. # We assume single-user installation as
  10. # done in our rvm.sh script and
  11. # in Travis-CI
  12. if [ "$TRAVIS" = "true" ]
  13. then
  14. rvmsudo rvm install $VERSION
  15. # Bundler is SOMETIMES missing... not sure why.
  16. rvmsudo rvm $VERSION do gem install bundler
  17. else
  18. rvm install $VERSION
  19. # Bundler is SOMETIMES missing... not sure why.
  20. rvm $VERSION do gem install bundler
  21. fi
  22. echo "" > $IROOT/ruby-$VERSION.installed
  23. source $IROOT/ruby-$VERSION.installed