osx 546 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env bash
  2. source "$rvm_scripts_path/functions/detect/xcode"
  3. source "$rvm_scripts_path/functions/requirements/osx_brew"
  4. source "$rvm_scripts_path/functions/requirements/osx_fink"
  5. source "$rvm_scripts_path/functions/requirements/osx_port"
  6. source "$rvm_scripts_path/functions/requirements/smf"
  7. requirements_osx_before()
  8. {
  9. \typeset __type
  10. for __type in osx_brew osx_port smf osx_fink
  11. do
  12. if
  13. requirements_find_${__type}
  14. then
  15. __lib_type=${__type}
  16. return 0
  17. fi
  18. done
  19. # fallback
  20. __lib_type=osx_brew
  21. }