summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-08 20:08:18 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-08 20:08:18 +0900
commitf42588f754d5885ec30631e5008c383f3ef905d8 (patch)
tree325ca5ad30ba9e1ccb96c273ae2b22122d7a8c24
parent1ca03dc4f77de4030534596ad23af64be925dc44 (diff)
Make RUBY_RELEASE_DATE full on development
I cannot tell the order just by commit hashes.
-rwxr-xr-xtool/file2lastrev.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb
index e22aa88b45..f7df07e330 100755
--- a/tool/file2lastrev.rb
+++ b/tool/file2lastrev.rb
@@ -11,6 +11,8 @@ require File.expand_path('../vcs', __FILE__)
Program = $0
+TIMEZONE_FOR_RELEASE = "+09:00" # in Japan Standard Time traditionally
+
@output = nil
def self.output=(output)
if @output and @output != output
@@ -74,6 +76,15 @@ vcs = nil
if title
"#define RUBY_LAST_COMMIT_TITLE #{title.dump}"
end,
+ if modified
+ modified.getlocal(TIMEZONE_FOR_RELEASE).
+ strftime(<<TIME)
+#if defined(RUBY_PATCHLEVEL) && (RUBY_PATCHLEVEL == -1)
+#undef RUBY_RELEASE_DATE
+#define RUBY_RELEASE_DATE "%FT%T%:z"
+#endif
+TIME
+ end,
].compact
}
when :doxygen