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
021280a3
Commit
021280a3
authored
Aug 07, 2011
by
Sam Stephenson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Automatically look for built-in definitions
parent
db8d7139
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
bin/ruby-build
+21
-0
No files found.
bin/ruby-build
View file @
021280a3
...
@@ -2,6 +2,20 @@
...
@@ -2,6 +2,20 @@
set
-e
set
-e
abs_dirname
()
{
local
cwd
=
"
$(
pwd
)
"
local
path
=
"
$1
"
while
[
-n
"
$path
"
]
;
do
cd
"
${
path
%/*
}
"
local
name
=
"
${
path
##*/
}
"
path
=
"
$(
readlink
"
$name
"
||
true
)
"
done
pwd
cd
"
$cwd
"
}
install_package
()
{
install_package
()
{
local
cwd
=
"
$(
pwd
)
"
local
cwd
=
"
$(
pwd
)
"
local
package_name
=
"
$1
"
local
package_name
=
"
$1
"
...
@@ -96,12 +110,19 @@ usage() {
...
@@ -96,12 +110,19 @@ usage() {
}
}
RUBY_BUILD_ROOT
=
"
$(
abs_dirname
"
$0
"
)
/.."
DEFINITION_PATH
=
"
$1
"
DEFINITION_PATH
=
"
$1
"
if
[
-z
"
$DEFINITION_PATH
"
]
;
then
if
[
-z
"
$DEFINITION_PATH
"
]
;
then
usage
usage
elif
[
!
-e
"
$DEFINITION_PATH
"
]
;
then
elif
[
!
-e
"
$DEFINITION_PATH
"
]
;
then
BUILTIN_DEFINITION_PATH
=
"
${
RUBY_BUILD_ROOT
}
/share/ruby-build/
${
DEFINITION_PATH
}
"
if
[
-e
"
$BUILTIN_DEFINITION_PATH
"
]
;
then
DEFINITION_PATH
=
"
$BUILTIN_DEFINITION_PATH
"
else
echo
"ruby-build: definition not found:
${
DEFINITION_PATH
}
"
>
&2
echo
"ruby-build: definition not found:
${
DEFINITION_PATH
}
"
>
&2
exit
1
exit
1
fi
fi
fi
PREFIX_PATH
=
"
$2
"
PREFIX_PATH
=
"
$2
"
...
...
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