mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
14 lines
180 B
Ruby
14 lines
180 B
Ruby
|
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
|
||
|
|