mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
13 lines
288 B
Ruby
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
|