From f69655d2f490b5f1294c792956db0201e14f5631 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Tue, 6 Sep 2011 14:56:07 -0500 Subject: [PATCH] ruby-build 20110906 --- bin/ruby-build | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/bin/ruby-build b/bin/ruby-build index 0acfe625..51d48026 100755 --- a/bin/ruby-build +++ b/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 @@ -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 @@ -164,6 +171,10 @@ case "$1" in list_definitions exit 0 ;; +"--version" ) + version + exit 0 + ;; "-v" | "--verbose" ) VERBOSE=true shift