Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ruby-build
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ruby-build
Commits
a568cffd
Commit
a568cffd
authored
Aug 07, 2011
by
Sam Stephenson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add --definitions
parent
23dc3e2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
bin/ruby-build
+13
-0
No files found.
bin/ruby-build
View file @
a568cffd
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment