aboutsummaryrefslogtreecommitdiffstats
path: root/rakelib
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-05-25 19:04:31 +0900
committergit <svn-admin@ruby-lang.org>2022-05-25 19:05:16 +0900
commit8006a15edf63f3f277a696e332682a2c6b6b7768 (patch)
tree4b1468fb05a4fe22567b7ed8aa9456363ca49594 /rakelib
parentdf7a1377e6283ca8645dbf1f0577ebc194337f50 (diff)
downloadruby-8006a15edf63f3f277a696e332682a2c6b6b7768.tar.gz
[ruby/timeout] Add epoch.rake [ci skip]
https://github.com/ruby/timeout/commit/5153ae9cad
Diffstat (limited to 'rakelib')
-rw-r--r--rakelib/epoch.rake5
1 files changed, 5 insertions, 0 deletions
diff --git a/rakelib/epoch.rake b/rakelib/epoch.rake
new file mode 100644
index 0000000000..80f27c9571
--- /dev/null
+++ b/rakelib/epoch.rake
@@ -0,0 +1,5 @@
+task "build" => "date_epoch"
+
+task "date_epoch" do
+ ENV["SOURCE_DATE_EPOCH"] = IO.popen(%W[git -C #{__dir__} log -1 --format=%ct], &:read).chomp
+end