@@ -22,7 +22,7 @@ <h2 id="name">Name</h2>
22
22
< h2 id ="synopsis "> Synopsis</ h2 >
23
23
< div class ="sectionbody ">
24
24
< div class ="paragraph ">
25
- < p > ruby-build [-kpv ] < em > <definition></ em > < em > <prefix></ em > [-- < em > <configure-args></ em > …​]< br >
25
+ < p > ruby-build [-dvpk ] < em > <definition></ em > < em > <prefix></ em > [-- < em > <configure-args></ em > …​]< br >
26
26
ruby-build {--list|--definitions}< br >
27
27
ruby-build --version</ p >
28
28
</ div >
@@ -36,6 +36,10 @@ <h2 id="description">Description</h2>
36
36
< em > definition</ em > argument into the location specified by < em > prefix</ em > .</ p >
37
37
</ div >
38
38
< div class ="paragraph ">
39
+ < p > The < em > definition</ em > argument can optionally start with "ruby-", in which case
40
+ it resolves to a CRuby that matches the version number that follows.</ p >
41
+ </ div >
42
+ < div class ="paragraph ">
39
43
< p > The < em > definition</ em > argument can be a path to a file on disk, in which case
40
44
it is sourced into ruby-build as a bash script.</ p >
41
45
</ div >
@@ -67,6 +71,10 @@ <h2 id="options">Options</h2>
67
71
< dd >
68
72
< p > Show version of ruby-build</ p >
69
73
</ dd >
74
+ < dt class ="hdlist1 "> < strong > -d, --dir</ strong > </ dt >
75
+ < dd >
76
+ < p > Install the Ruby in the < em > prefix/definition</ em > destination instead of directly in < em > prefix</ em > </ p >
77
+ </ dd >
70
78
< dt class ="hdlist1 "> < strong > -v, --verbose</ strong > </ dt >
71
79
< dd >
72
80
< p > Verbose mode: forward all build output to stdout/stderr</ p >
@@ -95,20 +103,35 @@ <h2 id="options">Options</h2>
95
103
< h2 id ="examples "> Examples</ h2 >
96
104
< div class ="sectionbody ">
97
105
< div class ="paragraph ">
98
- < p > Install Ruby version 3.2.2 under < code > /opt/rubies</ code > while tweaking some
99
- configuration options:</ p >
106
+ < p > Install a Ruby version while tweaking some configuration options:</ p >
107
+ </ div >
108
+ < div class ="listingblock ">
109
+ < div class ="content ">
110
+ < pre > $ ruby-build 3.2.2 /path/to/destination -- --disable-install-doc --with-openssl-dir=/opt/openssl</ pre >
111
+ </ div >
112
+ </ div >
113
+ < div class ="paragraph ">
114
+ < p > Install a Ruby version to < code > ~/.rubies/ruby-3.2.2</ code > :</ p >
115
+ </ div >
116
+ < div class ="listingblock ">
117
+ < div class ="content ">
118
+ < pre > $ ruby-build --dir ruby-3.2.2 ~/.rubies</ pre >
119
+ </ div >
120
+ </ div >
121
+ < div class ="paragraph ">
122
+ < p > Install a Ruby version to < code > ~/.rbenv/versions/3.3.5</ code > :</ p >
100
123
</ div >
101
124
< div class ="listingblock ">
102
125
< div class ="content ">
103
- < pre > $ ruby-build 3.2.2 /opt/rubies/ruby-3.2.2 -- --disable-install-doc --with-openssl-dir=/opt/openssl </ pre >
126
+ < pre > $ ruby-build --dir 3.3.5 ~/.rbenv/versions </ pre >
104
127
</ div >
105
128
</ div >
106
129
< div class ="paragraph ">
107
- < p > Usage as rbenv plugin:</ p >
130
+ < p > Usage as rbenv plugin, accomplishes the same as the previous example :</ p >
108
131
</ div >
109
132
< div class ="listingblock ">
110
133
< div class ="content ">
111
- < pre > $ rbenv install 3.2.2 </ pre >
134
+ < pre > $ rbenv install 3.3.5 </ pre >
112
135
</ div >
113
136
</ div >
114
137
</ div >
@@ -239,7 +262,7 @@ <h2 id="notes">Notes</h2>
239
262
</ div >
240
263
< div id ="footer ">
241
264
< div id ="footer-text ">
242
- Last updated 2023-11-08 00:17:26 +0100
265
+ Last updated 2024-10-09 19:45:59 +0200
243
266
</ div >
244
267
</ div >
245
268
</ body >
0 commit comments