blob: bbf03aebc2d7eb9e6e4b59c4bc3a21e1ead4ecb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#! /usr/local/bin/ruby
f = open("version.h", "r")
f.gets()
f.close
if $_ =~ /"(\d)\.(\d+)"/;
f = open("version.h", "w")
i = $2.to_i + 1
printf("ruby version %d.%0d\n", $1, i)
printf(f, "#define RUBY_VERSION \"%d.%0d\"\n", $1, i)
f.close
end
|