File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,33 @@ branch_name="$1"
15
15
commit=" $( git rev-parse --short HEAD) "
16
16
17
17
perl -pi -e " s/development/$branch_name $commit /" version.h
18
+ cp version.h version.h.pristine
18
19
19
20
try autoconf
20
21
try ./configure --prefix=/data/ruby --disable-install-doc
21
22
try make -j 4
22
23
try make install
23
24
25
+ # wait to touch version.h last modified timestamp (1 sec resolution),
26
+ # so make recognizes the change and rebuilds
27
+ sleep 1
28
+ cp version.h.pristine version.h
29
+ perl -pi -e ' s/-github/-github-libcmalloc/' version.h
30
+ try make ruby-libcmalloc RUBY_INSTALL_NAME=ruby-libcmalloc
31
+ cp ruby-libcmalloc /data/ruby/bin
32
+
33
+ sleep 1
34
+ cp version.h.pristine version.h
35
+ perl -pi -e " s/-github/-github-tcmalloc/" version.h
36
+ try make ruby-tcmalloc RUBY_INSTALL_NAME=ruby-tcmalloc MAINLIBS=-ltcmalloc
37
+ cp ruby-tcmalloc /data/ruby/bin
38
+ cp -p ruby-tcmalloc /data/ruby/bin/ruby
39
+
40
+ sleep 1
41
+ cp version.h.pristine version.h
42
+ perl -pi -e " s/-github/-github-jemalloc/" version.h
43
+ try make ruby-jemalloc RUBY_INSTALL_NAME=ruby-jemalloc MAINLIBS=-ljemalloc
44
+ cp ruby-jemalloc /data/ruby/bin
45
+
24
46
export PATH=/data/ruby/bin:$PATH
25
47
try gem install vendor/bundler-1.3.5.gem
You can’t perform that action at this time.
0 commit comments