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
fc6e0ae6
Commit
fc6e0ae6
authored
Oct 31, 2014
by
Mislav Marohnić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix comparing OS X version when it has 3 components
parent
de155dd1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
bin/ruby-build
+3
-4
test/compiler.bats
+1
-1
No files found.
bin/ruby-build
View file @
fc6e0ae6
...
@@ -89,10 +89,9 @@ os_information() {
...
@@ -89,10 +89,9 @@ os_information() {
# 10.9 -> 1009
# 10.9 -> 1009
# 10.10 -> 1010
# 10.10 -> 1010
osx_version
()
{
osx_version
()
{
local
ver
=
"
$(
sw_vers
-productVersion
)
"
local
-a
ver
local
major
=
"
${
ver
%.*
}
"
IFS
=
.
ver
=(
`
sw_vers
-productVersion
`
)
local
minor
=
"
${
ver
#*.
}
"
echo
$((
${
ver
[0]
}
*
100
+
${
ver
[1]
}
))
echo
$((
major
*
100
+
minor
))
}
}
build_failed
()
{
build_failed
()
{
...
...
test/compiler.bats
View file @
fc6e0ae6
...
@@ -8,7 +8,7 @@ export -n CC
...
@@ -8,7 +8,7 @@ export -n CC
@test "require_gcc on OS X 10.9" {
@test "require_gcc on OS X 10.9" {
stub uname '-s : echo Darwin'
stub uname '-s : echo Darwin'
stub sw_vers '-productVersion : echo 10.9'
stub sw_vers '-productVersion : echo 10.9
.5
'
stub gcc '--version : echo 4.2.1'
stub gcc '--version : echo 4.2.1'
run_inline_definition <<DEF
run_inline_definition <<DEF
...
...
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