mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/timeout] Add epoch.rake [ci skip]
https://github.com/ruby/timeout/commit/5153ae9cad
This commit is contained in:
parent
df7a1377e6
commit
8006a15edf
2 changed files with 6 additions and 1 deletions
|
@ -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…
Reference in a new issue