1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add empty depend file if extconf.rb only exists

This commit is contained in:
Nobuyoshi Nakada 2019-07-14 01:41:55 +09:00
parent 69a66e8a8b
commit ac2866005b
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -345,6 +345,17 @@ env:
before_install: before_install:
install: install:
before_script: before_script:
- |-
ruby -e 'new = []
Dir.glob("ext/**/extconf.rb") {|ex|
unless File.exist?(dep = File.dirname(ex)+"/depend")
puts "Adding "+dep
File.copy_stream("template/depend.tmpl", dep)
new << dep
end
}
exec("git", "add", *new) unless new.empty?'
- git diff --cached
- "> config.status" - "> config.status"
- "> .rbconfig.time" - "> .rbconfig.time"
- sed -f tool/prereq.status template/Makefile.in common.mk > Makefile - sed -f tool/prereq.status template/Makefile.in common.mk > Makefile