1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/tool/getrev.rb

14 lines
180 B
Ruby
Raw Normal View History

str = ARGF.gets
if /ChangeLog (\d+)/ =~ str
puts %Q{char *rev = "#{$1}";}
else
raise
end
if /ChangeLog \d+ ([\d-]+)/ =~ str
puts %Q{char *date = "#{$1}";}
else
raise
end