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
97a48518
Commit
97a48518
authored
Oct 17, 2011
by
Sam Stephenson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add --verbose and --resume options
parent
b5cc9ffb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
2 deletions
+31
-2
bin/ruby-package
+31
-2
No files found.
bin/ruby-package
View file @
97a48518
...
@@ -23,12 +23,38 @@ abs_dirname() {
...
@@ -23,12 +23,38 @@ abs_dirname() {
cd
"
$cwd
"
cd
"
$cwd
"
}
}
usage
()
{
echo
"usage: ruby-package [-v | --verbose] [--resume] DEFINITION"
exit
1
}
bin_root
=
"
$(
abs_dirname
"
$0
"
)
"
bin_root
=
"
$(
abs_dirname
"
$0
"
)
"
verbose
=
""
resume
=
""
while
:
;
do
case
"
$1
"
in
"-v"
|
"--verbose"
)
verbose
=
"-v"
shift
;;
"--resume"
)
resume
=
1
shift
;;
"-"
*
)
usage
;;
*
)
break
;;
esac
done
definition
=
"
$1
"
definition
=
"
$1
"
if
[
-z
"
$definition
"
]
;
then
if
[
-z
"
$definition
"
]
;
then
echo
"usage: ruby-package DEFINITION"
usage
fi
fi
package
=
"
${
definition
##*/
}
"
package
=
"
${
definition
##*/
}
"
...
@@ -36,7 +62,10 @@ prefix="/tmp/ruby-build/--------------------------------------------------------
...
@@ -36,7 +62,10 @@ prefix="/tmp/ruby-build/--------------------------------------------------------
package_dir
=
"
${
package
}
.
$(
package_platform
)
"
package_dir
=
"
${
package
}
.
$(
package_platform
)
"
"
${
bin_root
}
/ruby-build"
-v
"
$definition
"
"
$prefix
"
if
[
-z
"
$resume
"
]
;
then
"
${
bin_root
}
/ruby-build"
$verbose
"
$definition
"
"
$prefix
"
fi
cwd
=
"
$(
pwd
)
"
cwd
=
"
$(
pwd
)
"
cd
"
${
prefix
}
/.."
cd
"
${
prefix
}
/.."
...
...
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