diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-29 02:06:38 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-29 02:06:38 +0000 |
commit | 3bc54673ce42229316db7a72a2c4668aafebb5fa (patch) | |
tree | 521812287802bc04a38f1cd16d73f028e0840b12 /template | |
parent | 6180d4a552fa8c081c21120bd98a3ec88e25aafd (diff) | |
download | ruby-3bc54673ce42229316db7a72a2c4668aafebb5fa.tar.gz |
common.mk: fix conflict of version.i
* common.mk ($(arch)-fake.rb): read from STDIN instead of creating
version.i, to get rid of conflict with tool/update-deps.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rw-r--r-- | template/fake.rb.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in index fa7f1f79e1..f2cc7c65b6 100644 --- a/template/fake.rb.in +++ b/template/fake.rb.in @@ -5,8 +5,8 @@ while /\A(\w+)=(.*)/ =~ ARGV[0] arg[$1].tr!(File::ALT_SEPARATOR, File::SEPARATOR) if File::ALT_SEPARATOR ARGV.shift end -if arg['i'] - src = File.read(arg['i']) +if inc = arg['i'] + src = inc == '-' ? STDIN.read : File.read(inc) arg['versions'] = version = {} File.read(File.join(arg['srcdir'], 'version.c')). scan(/rb_define_global_const\("(RUBY_\w+)",[^;]*?\bMK(?:INT|STR)\(([^()]*)\)/m) do |n, v| |