Skip to content

Commit

Permalink
Merge pull request #943 from nobu/epoch
Browse files Browse the repository at this point in the history
Add epoch.rake
  • Loading branch information
nobu authored Nov 27, 2022
2 parents 009db5a + fdec173 commit aced890
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 aced890

Please sign in to comment.