Skip to content

Commit aced890

Browse files
authored
Merge pull request #943 from nobu/epoch
Add epoch.rake
2 parents 009db5a + fdec173 commit aced890

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rakelib/epoch.rake

+5
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)