summaryrefslogtreecommitdiffstats
path: root/tool/getrev.rb
blob: 1d24a17829254edd74b6e13a97c21c0b0e72b9e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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