From 5f0d2dc032c648af2cdbb9483c1a1ba7b3ddf900 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 2 Oct 2009 15:55:34 +0100 Subject: [PATCH] Formula.etc is now HOMEBREW_PREFIX/etc You generally don't want to have to copy the configuration to a new directory when you upgrade. --- Library/Homebrew/formula.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index d6b9826ef4..66633a0250 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -88,7 +88,6 @@ class Formula def bin; prefix+'bin' end def sbin; prefix+'sbin' end def doc; prefix+'share'+'doc'+name end - def etc; prefix+'etc' end def lib; prefix+'lib' end def libexec; prefix+'libexec' end def man; prefix+'share'+'man' end @@ -96,7 +95,10 @@ class Formula def info; prefix+'share'+'info' end def include; prefix+'include' end def share; prefix+'share' end + + # generally we don't want these to be inside the keg def var; HOMEBREW_PREFIX+'var' end + def etc; HOMEBREW_PREFIX+'etc' end # reimplement if we don't autodetect the download strategy you require def download_strategy