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
a5bc77ad
Commit
a5bc77ad
authored
Apr 19, 2015
by
SHIBATA Hiroshi
Browse files
Options
Browse Files
Download
Plain Diff
fixed conflict with upstream
parents
97b99997
43d8d024
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
4 deletions
+26
-4
bin/ruby-build
+26
-4
No files found.
bin/ruby-build
View file @
a5bc77ad
...
...
@@ -6,6 +6,8 @@
# -k/--keep Do not remove source tree after installation
# -v/--verbose Verbose mode: print compilation status to stdout
# -p/--patch Apply a patch from stdin before building
# -4/--ipv4 Resolve names to IPv4 addresses only
# -6/--ipv6 Resolve names to IPv6 addresses only
# --definitions List all built-in definitions
#
...
...
@@ -284,19 +286,31 @@ http() {
}
http_head_curl
()
{
curl
-qsILf
"
$1
"
>
&4 2>&1
options
=
""
[
-n
"
${
IPV4
}
"
]
&&
options
=
"--ipv4"
[
-n
"
${
IPV6
}
"
]
&&
options
=
"--ipv6"
curl
-qsILf
${
options
}
"
$1
"
>
&4 2>&1
}
http_get_curl
()
{
curl
-q
-o
"
${
2
:-
-
}
"
-sSLf
"
$1
"
options
=
""
[
-n
"
${
IPV4
}
"
]
&&
options
=
"--ipv4"
[
-n
"
${
IPV6
}
"
]
&&
options
=
"--ipv6"
curl
-q
-o
"
${
2
:-
-
}
"
-sSLf
${
options
}
"
$1
"
}
http_head_wget
()
{
wget
-q
--spider
"
$1
"
>
&4 2>&1
options
=
""
[
-n
"
${
IPV4
}
"
]
&&
options
=
"--inet4-only"
[
-n
"
${
IPV6
}
"
]
&&
options
=
"--inet6-only"
wget
-q
--spider
${
options
}
"
$1
"
>
&4 2>&1
}
http_get_wget
()
{
wget
-nv
-O
"
${
2
:-
-
}
"
"
$1
"
options
=
""
[
-n
"
${
IPV4
}
"
]
&&
options
=
"--inet4-only"
[
-n
"
${
IPV6
}
"
]
&&
options
=
"--inet6-only"
wget
-nv
${
options
}
-O
"
${
2
:-
-
}
"
"
$1
"
}
fetch_tarball
()
{
...
...
@@ -1004,6 +1018,8 @@ sort_versions() {
unset
VERBOSE
unset
KEEP_BUILD_PATH
unset
HAS_PATCH
unset
IPV4
unset
IPV6
RUBY_BUILD_INSTALL_PREFIX
=
"
$(
abs_dirname
"
$0
"
)
/.."
...
...
@@ -1033,6 +1049,12 @@ for option in "${OPTIONS[@]}"; do
"p"
|
"patch"
)
HAS_PATCH
=
true
;;
"4"
|
"ipv4"
)
IPV4
=
true
;;
"6"
|
"ipv6"
)
IPV6
=
true
;;
"version"
)
version
exit
0
...
...
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