From fdec1735c74099cfec209d31642ccbc27556c16e Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 27 Nov 2022 23:50:45 +0900 Subject: [PATCH] Add epoch.rake --- rakelib/epoch.rake | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 rakelib/epoch.rake 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