summaryrefslogtreecommitdiff
path: root/ext/ripper/tools/generate-eventids1.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ripper/tools/generate-eventids1.rb')
-rwxr-xr-xext/ripper/tools/generate-eventids1.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/ripper/tools/generate-eventids1.rb b/ext/ripper/tools/generate-eventids1.rb
index de0e27b89c9..3d9a57e0340 100755
--- a/ext/ripper/tools/generate-eventids1.rb
+++ b/ext/ripper/tools/generate-eventids1.rb
@@ -1,8 +1,6 @@
-#
-# generate-eventids1.rb
-#
+# $Id$
-ids = ARGF.map {|s| s.strip }
+ids = File.readlines(ARGV[0]).map {|s| s.split[0] }
ids.each do |id|
puts "static ID ripper_id_#{id};"