1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/digest/install_headers.rb
2021-11-16 19:42:20 +09:00

13 lines
288 B
Ruby

require "fileutils"
*files, dest = ARGV
if File.exist?(File.join(dest, "ruby.h"))
warn "installing header files"
files.each { |file|
FileUtils.install file, dest, mode: 0644, verbose: true
}
else
warn "not installing header files when installed as an external library"
end