mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
|
spec.files = Dir.chdir(__dir__) do
|
||||||
`git ls-files -z`.split("\x0").reject do |f|
|
`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
|
||||||
end
|
end
|
||||||
spec.bindir = "exe"
|
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…
Add table
Add a link
Reference in a new issue