Revert "Treat RUBY_REVISION as an integer on old rubies"
This reverts commit 6454808c52fff445ff09fefb0fb96988f82aaa3c. It is no longer needed, as `VCS::SVN#get_revisions` now returns `Integer` as revision numbers, and `short_revision` should deal with it.
This commit is contained in:
parent
b11d739444
commit
c1d0b6adfc
@ -293,14 +293,10 @@ def package(vcs, rev, destdir, tmp = nil)
|
||||
end
|
||||
|
||||
open("#{v}/revision.h", "wb") {|f|
|
||||
if revision.is_a?(Integer)
|
||||
f.puts "#define RUBY_REVISION #{revision}"
|
||||
else
|
||||
short = vcs.short_revision(revision)
|
||||
f.puts "#define RUBY_REVISION #{short.inspect}"
|
||||
unless short == revision
|
||||
f.puts "#define RUBY_FULL_REVISION #{revision.inspect}"
|
||||
end
|
||||
short = vcs.short_revision(revision)
|
||||
f.puts "#define RUBY_REVISION #{short.inspect}"
|
||||
unless short == revision
|
||||
f.puts "#define RUBY_FULL_REVISION #{revision.inspect}"
|
||||
end
|
||||
}
|
||||
version ||= (versionhdr = IO.read("#{v}/version.h"))[RUBY_VERSION_PATTERN, 1]
|
||||
|
Loading…
x
Reference in New Issue
Block a user