summaryrefslogtreecommitdiff
path: root/tool/node_name.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-29 07:09:40 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-29 07:09:40 +0000
commit8ffeda041b92f1dbdc05d9356e05d9f624922ef3 (patch)
tree880407125de33025450a76608493a2175c52ce03 /tool/node_name.rb
parent79316a1c735badcc6b06441f34d6580b904381c5 (diff)
* common.mk (node_name.inc): remove command option -n and give
file as stdin, because IronRuby 1.1 still doesn't support it. So now we can use ir.exe as BASERUBY. * tool/node_name.rb: read stdin with while gets. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/node_name.rb')
-rwxr-xr-xtool/node_name.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/tool/node_name.rb b/tool/node_name.rb
index 5d39e9f5cc..fef7720a5a 100755
--- a/tool/node_name.rb
+++ b/tool/node_name.rb
@@ -1,4 +1,6 @@
-#! ./miniruby -n
-if ~/enum node_type \{/..~/^\};/
- ~/(NODE_.+),/ and puts(" case #{$1}:\n\treturn \"#{$1}\";")
+#! ./miniruby
+while gets
+ if ~/enum node_type \{/..~/^\};/
+ ~/(NODE_.+),/ and puts(" case #{$1}:\n\treturn \"#{$1}\";")
+ end
end