mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02: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
|