Skip to content

Commit c33664f

Browse files
committed
Add epoch.rake
1 parent 45259f9 commit c33664f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rakelib/epoch.rake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
task "build" => "date_epoch"
2+
3+
task "date_epoch" do
4+
ENV["SOURCE_DATE_EPOCH"] = IO.popen(%W[git -C #{__dir__} log -1 --format=%ct], &:read).chomp
5+
end

0 commit comments

Comments
 (0)