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
60a17069
Commit
60a17069
authored
Apr 22, 2018
by
SHIBATA Hiroshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added generate script for rbx definitions used postmodern/ruby-versions.
parent
f50343c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
script/update-rbx-defs
+27
-0
No files found.
script/update-rbx-defs
0 → 100755
View file @
60a17069
#!/usr/bin/env ruby
require
'open-uri'
require
'pathname'
file
=
"https://raw.githubusercontent.com/postmodern/ruby-versions/master/rubinius/checksums.sha256"
dir
=
Pathname
(
File
.
expand_path
(
"share/ruby-build"
))
open
(
file
).
each
do
|
package
|
sha256
,
filename
=
package
.
chomp
.
split
version
=
filename
.
match
(
/rubinius-(3.[\d\.]+).tar.bz2/
)
next
unless
version
version
=
version
[
1
]
defname
=
"rbx-
#{
version
}
"
next
if
File
.
exists?
(
dir
.
join
(
defname
))
definition
=
<<-
TEMPLATE
require_llvm 3.7
install_package "openssl-1.0.2o" "https://www.openssl.org/source/openssl-1.0.2o.tar.gz#ec3f5c9714ba0fd45cb4e087301eb1336c317e0d20b575a125050470e8089e4d" mac_openssl --if has_broken_mac_openssl
install_package "rubinius-
#{
version
}
" "https://rubinius-releases-rubinius-com.s3.amazonaws.com/rubinius-
#{
version
}
.tar.bz2#
#{
sha256
}
" rbx
TEMPLATE
File
.
open
(
dir
.
join
(
defname
),
"w"
){
|
f
|
f
.
write
definition
}
end
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