Install README.txt etc. as README

This commit is contained in:
Max Howell 2009-08-08 13:52:17 +01:00
parent dae260561e
commit 0ea078e1ae

View File

@ -147,7 +147,8 @@ def install f
f.prefix.mkpath
f.install
%w[README ChangeLog COPYING LICENSE COPYRIGHT AUTHORS].each do |file|
f.prefix.install file if File.file? file
FileUtils.mv "#{file}.txt", file rescue nil
f.prefix.install file rescue nil
end
end
end