mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-10-28 07:41:07 +01:00
ruby-build 20110906
This commit is contained in:
parent
95e8b564a3
commit
f69655d2f4
1 changed files with 12 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
RUBY_BUILD_VERSION="20110906"
|
||||||
|
|
||||||
set -E
|
set -E
|
||||||
exec 3<&2 # preserve original stderr at fd 3
|
exec 3<&2 # preserve original stderr at fd 3
|
||||||
|
|
||||||
|
|
@ -128,8 +130,13 @@ use_gcc42_on_lion() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
version() {
|
||||||
|
echo "ruby-build ${RUBY_BUILD_VERSION}"
|
||||||
|
}
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
{ echo "usage: ruby-build [-v|--verbose] definition prefix"
|
{ version
|
||||||
|
echo "usage: ruby-build [-v|--verbose] definition prefix"
|
||||||
echo " ruby-build --definitions"
|
echo " ruby-build --definitions"
|
||||||
} >&2
|
} >&2
|
||||||
|
|
||||||
|
|
@ -164,6 +171,10 @@ case "$1" in
|
||||||
list_definitions
|
list_definitions
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
"--version" )
|
||||||
|
version
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
"-v" | "--verbose" )
|
"-v" | "--verbose" )
|
||||||
VERBOSE=true
|
VERBOSE=true
|
||||||
shift
|
shift
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue