aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-08-08 13:52:17 +0100
committerMax Howell2009-08-10 18:11:23 +0100
commitc3df8f772399d1364f0056bbd74a8c153cb45b41 (patch)
tree3c471168453508ea7d4342fea8f743fa4070bd03
parentf0f391dcb82b35c195c74e77c45bbe0a0cb5271e (diff)
downloadhomebrew-c3df8f772399d1364f0056bbd74a8c153cb45b41.tar.bz2
Install README.txt etc. as README
-rw-r--r--Library/Homebrew/brew.h.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb
index 8f5408e1b..842439a8c 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