Last change
on this file since 445 was 439, checked in by coas-nagasima, 4 years ago |
mrubyを2.1.1に更新
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-ruby
|
File size:
537 bytes
|
Rev | Line | |
---|
[331] | 1 | #!/usr/bin/env ruby
|
---|
| 2 | #
|
---|
| 3 | # mrbgems test runner
|
---|
| 4 | #
|
---|
| 5 |
|
---|
| 6 | if __FILE__ == $0
|
---|
| 7 | repository, dir = 'https://github.com/mruby/mruby.git', 'tmp/mruby'
|
---|
| 8 | build_args = ARGV
|
---|
| 9 |
|
---|
| 10 | Dir.mkdir 'tmp' unless File.exist?('tmp')
|
---|
| 11 | unless File.exist?(dir)
|
---|
| 12 | system "git clone #{repository} #{dir}"
|
---|
| 13 | end
|
---|
| 14 |
|
---|
| 15 | exit system(%Q[cd #{dir}; MRUBY_CONFIG=#{File.expand_path __FILE__} ruby minirake #{build_args.join(' ')}])
|
---|
| 16 | end
|
---|
| 17 |
|
---|
| 18 | MRuby::Build.new do |conf|
|
---|
| 19 | toolchain :gcc
|
---|
| 20 | conf.gembox 'default'
|
---|
[439] | 21 | conf.enable_test
|
---|
[331] | 22 |
|
---|
| 23 | conf.gem File.expand_path(File.dirname(__FILE__))
|
---|
| 24 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.