aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-06-18 09:49:13 +0100
committerMax Howell2009-06-18 10:31:15 +0100
commitba7e4e58ff95a019194fbc494eca58dd23393b84 (patch)
treed46f3ef81e6b62902c56a13d9fede5060e501e63 /Library
parent76259fcfbb32becc42236dd0298165a8a13f0b5f (diff)
downloadhomebrew-ba7e4e58ff95a019194fbc494eca58dd23393b84.tar.bz2
mv share/doc/name-version to share/doc/name
Versioned docs don't make sense with our installation pattern
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brewkit.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/brewkit.rb b/Library/Homebrew/brewkit.rb
index 3adbe5195..95243810c 100644
--- a/Library/Homebrew/brewkit.rb
+++ b/Library/Homebrew/brewkit.rb
@@ -87,9 +87,15 @@ end
# make our code neater
class Pathname
- def mv dst
+ def mv dst
FileUtils.mv to_s, dst
end
+
+ def rename dst
+ dst=Pathname.new dst
+ dst.unlink if dst.exist?
+ mv dst
+ end
def install src
FileUtils.mv src, to_s