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

Fix revision name

* tool/make-snapshot (package): dump to stringize GIT revisions
  properly.
This commit is contained in:
Nobuyoshi Nakada 2019-05-22 23:50:07 +09:00
parent 24684a81d2
commit 8fb77acac7
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -286,7 +286,7 @@ def package(vcs, rev, destdir, tmp = nil)
v = v[0]
end
open("#{v}/revision.h", "wb") {|f| f.puts "#define RUBY_REVISION #{revision}"}
open("#{v}/revision.h", "wb") {|f| f.puts "#define RUBY_REVISION #{revision.dump}"}
version ||= (versionhdr = IO.read("#{v}/version.h"))[RUBY_VERSION_PATTERN, 1]
version ||=
begin