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
46d7a6d7
Commit
46d7a6d7
authored
Mar 12, 2012
by
Jay Adkisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use `wget` if it's available and curl isn't
parent
cacc406e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
bin/ruby-build
+9
-1
No files found.
bin/ruby-build
View file @
46d7a6d7
...
@@ -89,12 +89,20 @@ make_package() {
...
@@ -89,12 +89,20 @@ make_package() {
popd
>
&4
popd
>
&4
}
}
if
type
curl &>/dev/null
;
then
get
()
{
curl
"
$@
"
;
}
elif
type
wget &>/dev/null
;
then
get
()
{
wget
-O-
"
$@
"
;
}
else
get
()
{
echo
"curl or wget is required"
>
&2
;
exit
1
;
}
fi
fetch_tarball
()
{
fetch_tarball
()
{
local
package_name
=
"
$1
"
local
package_name
=
"
$1
"
local
package_url
=
"
$2
"
local
package_url
=
"
$2
"
echo
"Downloading
${
package_url
}
..."
>
&2
echo
"Downloading
${
package_url
}
..."
>
&2
{
curl
"
$package_url
"
>
"
${
package_name
}
.tar.gz"
{
get
"
$package_url
"
>
"
${
package_name
}
.tar.gz"
tar
xzvf
"
${
package_name
}
.tar.gz"
tar
xzvf
"
${
package_name
}
.tar.gz"
}
>
&4 2>&1
}
>
&4 2>&1
}
}
...
...
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