manage 732 B

123456789101112131415161718192021222324252627
  1. #!/usr/bin/env bash
  2. # __rvm_detect_system() does not support AIX
  3. sys=$( command uname -s )
  4. if [[ "${sys}" == AIX ]]
  5. then name_opt=-name
  6. else name_opt=-iname
  7. fi
  8. original_ruby_version=${rvm_ruby_version:-""}
  9. original_ruby_string=${rvm_ruby_string:-""}
  10. source "$rvm_scripts_path/patches"
  11. source "$rvm_scripts_path/functions/build"
  12. source "$rvm_scripts_path/functions/pkg"
  13. source "$rvm_scripts_path/functions/irbrc"
  14. source "$rvm_scripts_path/functions/support"
  15. source "$rvm_scripts_path/functions/rubygems"
  16. source "$rvm_scripts_path/functions/manage/base"
  17. if [[ -n "${RUBYOPT:-""}" ]]
  18. then ruby_options="$RUBYOPT"
  19. fi
  20. unset RUBYLIB RUBYOPT # Sanity check.
  21. binaries=()
  22. __rvm_manage_rubies # located in scripts/functions/manage/base