Skip to content

Commit

Permalink
ruby-build 20110906
Browse files Browse the repository at this point in the history
  • Loading branch information
sstephenson committed Sep 6, 2011
1 parent 95e8b56 commit f69655d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion bin/ruby-build
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

RUBY_BUILD_VERSION="20110906"

set -E
exec 3<&2 # preserve original stderr at fd 3

Expand Down Expand Up @@ -128,8 +130,13 @@ use_gcc42_on_lion() {
fi
}

version() {
echo "ruby-build ${RUBY_BUILD_VERSION}"
}

usage() {
{ echo "usage: ruby-build [-v|--verbose] definition prefix"
{ version
echo "usage: ruby-build [-v|--verbose] definition prefix"
echo " ruby-build --definitions"
} >&2

Expand Down Expand Up @@ -164,6 +171,10 @@ case "$1" in
list_definitions
exit 0
;;
"--version" )
version
exit 0
;;
"-v" | "--verbose" )
VERBOSE=true
shift
Expand Down

0 comments on commit f69655d

Please sign in to comment.