summaryrefslogtreecommitdiff
path: root/tool/make-snapshot
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-09-17 21:16:06 +0900
committerGitHub <noreply@github.com>2022-09-17 21:16:06 +0900
commit38a7a13ac6ed6bba2584def7d7121257eb85e051 (patch)
tree1c20408e50d0fdd78e6277d9fa2dea05d785a88f /tool/make-snapshot
parentca4cbe59eda77a3855094c843486759868794e85 (diff)
Auto-generate the release date on version.h from git CommitDate (#6382)
* Auto-generate the release date on version.h from git CommitDate * Generate revision.h on mswin
Notes
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-xtool/make-snapshot2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 02b5d182f5..22ae360c3e 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -347,7 +347,7 @@ def package(vcs, rev, destdir, tmp = nil)
end
File.open("#{v}/revision.h", "wb") {|f|
- f.puts vcs.revision_header(revision)
+ f.puts vcs.revision_header(revision, modified)
}
version ||= (versionhdr = IO.read("#{v}/version.h"))[RUBY_VERSION_PATTERN, 1]
version ||=