Deal with symlinked meta files
This commit is contained in:
parent
4e6d7a4de9
commit
c9d41345d0
@ -94,10 +94,13 @@ def install f
|
|||||||
f.prefix.mkpath
|
f.prefix.mkpath
|
||||||
beginning=Time.now
|
beginning=Time.now
|
||||||
f.install
|
f.install
|
||||||
FORMULA_META_FILES.each do |file|
|
FORMULA_META_FILES.each do |filename|
|
||||||
next if File.directory? file
|
next if File.directory? filename
|
||||||
FileUtils.mv "#{file}.txt", file rescue nil
|
target_file = filename
|
||||||
f.prefix.install file rescue nil
|
target_file = "#{filename}.txt" if File.exists? "#{filename}.txt"
|
||||||
|
# Some software symlinks these files (see help2man.rb)
|
||||||
|
target_file = Pathname.new(target_file).resolved_path
|
||||||
|
f.prefix.install target_file => filename rescue nil
|
||||||
(f.prefix+file).chmod 0644 rescue nil
|
(f.prefix+file).chmod 0644 rescue nil
|
||||||
end
|
end
|
||||||
build_time = Time.now-beginning
|
build_time = Time.now-beginning
|
||||||
|
Loading…
x
Reference in New Issue
Block a user