Commit a568cffd by Sam Stephenson

Add --definitions

parent 23dc3e2c
...@@ -121,6 +121,14 @@ usage() { ...@@ -121,6 +121,14 @@ usage() {
[ -z "$1" ] && exit 1 [ -z "$1" ] && exit 1
} }
list_definitions() {
{ for definition in "${RUBY_BUILD_ROOT}/share/ruby-build/"*; do
echo "${definition##*/}"
done
} | sort
}
unset VERBOSE unset VERBOSE
RUBY_BUILD_ROOT="$(abs_dirname "$0")/.." RUBY_BUILD_ROOT="$(abs_dirname "$0")/.."
...@@ -132,10 +140,15 @@ case "$1" in ...@@ -132,10 +140,15 @@ case "$1" in
echo "Options:" echo "Options:"
echo echo
echo " -v/--verbose Verbose mode: print compilation status to stdout" echo " -v/--verbose Verbose mode: print compilation status to stdout"
echo " --definitions List all built-in definitions"
echo echo
} >&2 } >&2
exit 0 exit 0
;; ;;
"--definitions" )
list_definitions
exit 0
;;
"-v" | "--verbose" ) "-v" | "--verbose" )
VERBOSE=true VERBOSE=true
shift shift
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment