summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rwxr-xr-xtool/file2lastrev.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb
index 090f2e981d..44c4318cd8 100755
--- a/tool/file2lastrev.rb
+++ b/tool/file2lastrev.rb
@@ -75,12 +75,7 @@ vcs = nil
"#define RUBY_LAST_COMMIT_TITLE #{title.dump}"
end,
if modified
- modified.utc.strftime(<<TIME)
-#if defined(RUBY_PATCHLEVEL) && (RUBY_PATCHLEVEL == -1)
-#undef RUBY_RELEASE_DATE
-#define RUBY_RELEASE_DATE "%FT%TZ"
-#endif
-TIME
+ modified.utc.strftime('#define RUBY_RELEASE_DATETIME "%FT%TZ"')
end,
].compact
}