Skip to content

Commit

Permalink
Add epoch.rake
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Nov 27, 2022
1 parent 009db5a commit fdec173
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rakelib/epoch.rake
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fdec173

Please sign in to comment.