aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAndre Arko2009-09-28 14:06:53 -0700
committerMax Howell2009-09-29 23:34:16 +0100
commit53fa04ca1b6b2033ac4e94359de44c1566d91fc1 (patch)
tree6dca3103542943584b4f7ab730c4285b60d3c1b6 /Library/Formula
parent2459b35e081275987c15d34ca36cf2e472d20b66 (diff)
downloadhomebrew-53fa04ca1b6b2033ac4e94359de44c1566d91fc1.tar.bz2
Allow skip_clean as a class method
Pass in a list of any files that you don't want cleaned with a path relative to the cellar. e.g. `strip_paths ['bin/znc']` It's backwards compatible with def strip_clean?, at least for now. The znc formula is updated as an example.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/znc.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Formula/znc.rb b/Library/Formula/znc.rb
index c64b6f1d4..53ae850ad 100644
--- a/Library/Formula/znc.rb
+++ b/Library/Formula/znc.rb
@@ -13,9 +13,7 @@ class Znc <Formula
depends_on 'c-ares'
- def skip_clean? path
- path == bin+'znc'
- end
+ skip_clean 'bin/znc'
def install
# This is a 3rd-party module that handles push notifications for Colloquy on the iPhone