File: epoch.rake

package info (click to toggle)
ruby-test-unit-ruby-core 1.0.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 164 kB
  • sloc: ruby: 1,376; makefile: 4
file content (5 lines) | stat: -rw-r--r-- 150 bytes parent folder | download | duplicates (4)
1
2
3
4
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