summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtool/make-snapshot12
1 files changed, 4 insertions, 8 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index d4863bb79e..9199cc2097 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -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]