Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Feature: 'rvm list --all' now outputs ruby strings and indicates defa…

…ults and has a few extra comments.
  • Loading branch information...
commit 8d343a78f8b7b9f260b1809d8b891c9b9f863151 1 parent c550caa
@wayneeseguin wayneeseguin authored
Showing with 12 additions and 6 deletions.
  1. +12 −6 scripts/utility
View
18 scripts/utility
@@ -381,13 +381,19 @@ __rvm_db() {
__rvm_list() {
if [[ ! -z "$rvm_all_flag" ]] ; then
- svn list http://svn.ruby-lang.org/repos/ruby/tags/ | grep 'v1_[8|9]' | sed 's#^v1_##' | sed 's#/$##' | awk -F'_' '{print "ruby-1."$1"."$2"-t"$3"}' | sed 's#p$##'
- echo -e "jruby-1.2.0\njruby-1.3.0\njruby-1.3.1\njruby(-1.4.0, the default)\njruby-head"
- echo -e "rbx (rubinius head, the default)\nrbx --jit (rubinius head with LLVM enabled)"
- echo -e "ree-1.8.6\nree (-1.8.7, the default)\nree-1.8.6-head\nree-1.8.7-head"
- echo -e "mput-head (shyouhei head, the default)"
+ while read -r tag
+ do
+ prefix="$(echo ${tag/\//} | sed 's#^v1_##' | awk -F'_' '{print "(ruby-)1."$1"."$2}' | sed 's#p$##')"
+ echo "${prefix}-t${tag/\//}"
+ unset prefix tag
+ done < <(svn list http://svn.ruby-lang.org/repos/ruby/tags/ | awk '/^v1_[8|9]/')
+ echo -e "(ruby-)1.8.6(-p383)\n(ruby-)1.8.6-head\n(ruby-)1.8.7(-p174)\n(ruby-)1.8.7-head\n(ruby-)1.9.1(-p243)\n(ruby-)1.9.1-head\n(ruby-)1.9.2-preview1"
+ echo -e "jruby-1.2.0\njruby-1.3.0\njruby-1.3.1\njruby(-1.4.0) # the default\njruby-head"
+ echo -e "rbx(-head) # rubinius head, the default rbx \nrbx(-head) --jit (rubinius head with LLVM enabled)"
+ echo -e "ree-1.8.6\nree(-1.8.7) # the default\nree-1.8.6-head\nree-1.8.7-head"
+ echo -e "mput(-head) # shyouhei head, the default mput"
if [[ "Darwin" = "$(uname)" ]] ; then
- echo -e "macruby (-nightly the default macruby)\nmacruby-head"
+ echo -e "macruby(-nightly) # the default macruby\nmacruby-head # Build from the macruby git repository"
fi
else
current_ruby="$(which ruby | xargs dirname | xargs dirname | xargs basename 2> /dev/null)"
Please sign in to comment.
Something went wrong with that request. Please try again.