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
e1b50e68
Commit
e1b50e68
authored
Sep 06, 2011
by
Sam Stephenson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure installed directories are not world-writable to avoid Bundler warnings
parent
7b4ee4cf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
bin/ruby-build
+6
-0
No files found.
bin/ruby-build
View file @
e1b50e68
...
...
@@ -44,6 +44,7 @@ install_package() {
cd
"
$package_name
"
build_package
"
$package_name
"
$*
after_install_package
"
$package_name
"
fix_directory_permissions
cd
"
$cwd
"
echo
"Installed
${
package_name
}
to
${
PREFIX_PATH
}
"
>
&2
...
...
@@ -114,6 +115,11 @@ after_install_package() {
local
stub
=
1
}
fix_directory_permissions
()
{
# Ensure installed directories are not world-writable to avoid Bundler warnings
find
"
$PREFIX_PATH
"
-type
d
-exec
chmod go-w
{}
\;
}
use_gcc42_on_lion
()
{
if
[
"
$(
uname
-s
)
"
=
"Darwin"
]
;
then
if
[
"
$(
expr
"
$(
sw_vers
-productVersion
| cut
-f
2
-d
.
)
"
\>
=
7
||
true
)
"
-eq
1
]
;
then
...
...
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