[ruby/timeout] Add epoch.rake [ci skip]
https://github.com/ruby/timeout/commit/5153ae9cad
This commit is contained in:
parent
df7a1377e6
commit
8006a15edf
@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
||||
|
||||
spec.files = Dir.chdir(__dir__) do
|
||||
`git ls-files -z`.split("\x0").reject do |f|
|
||||
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
||||
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features|rakelib)/|\.(?:git|travis|circleci)|appveyor|Rakefile)})
|
||||
end
|
||||
end
|
||||
spec.bindir = "exe"
|
||||
|
5
rakelib/epoch.rake
Normal file
5
rakelib/epoch.rake
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user