install the brew command with a relative symlink

This commit is contained in:
Max Howell 2009-05-23 16:39:51 +01:00
parent 0de774df34
commit 3c3f1a1c92

View File

@ -256,5 +256,6 @@ Kernel.at_exit {
if $0 == __FILE__
d=$cellar.parent+'bin'
d.mkpath unless d.exist?
(d+'brew').make_symlink $cellar+'homebrew'+'brew'
Dir.chdir d
Pathname.new('brew').make_symlink Pathname.new('../Cellar')+'homebrew'+'brew'
end