From 0ea078e1ae8663b6b3dda18ca4016059acbaf61b Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sat, 8 Aug 2009 13:52:17 +0100 Subject: [PATCH] Install README.txt etc. as README --- Library/Homebrew/brew.h.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index 8f5408e1bb..842439a8c2 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -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