aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-05-06 00:30:07 -0500
committerJack Nagel2012-05-06 01:07:43 -0500
commit4eb02cc40d8e5ded5045a3542aa43f1afc73daf3 (patch)
treed27764379ccf59cd117579b0619c9fa6f54aa371 /Library
parentf8428876764dfc22155617dc8ff85858a5a774b4 (diff)
downloadhomebrew-4eb02cc40d8e5ded5045a3542aa43f1afc73daf3.tar.bz2
dwatch: style nits
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/dwatch.rb15
1 files changed, 11 insertions, 4 deletions
diff --git a/Library/Formula/dwatch.rb b/Library/Formula/dwatch.rb
index 6856832a4..75b4a445f 100644
--- a/Library/Formula/dwatch.rb
+++ b/Library/Formula/dwatch.rb
@@ -6,14 +6,21 @@ class Dwatch < Formula
md5 '25c06240cb5ab8126badc8a78dcd2b79'
def install
- bin.mkpath # Makefile uses cp, not install
- man1.mkpath # ditto
+ # Makefile uses cp, not install
+ bin.mkpath
+ man1.mkpath
+
+ system "make", "install",
+ "CC=#{ENV.cc}",
+ "PREFIX=#{prefix}",
+ "MANDIR=#{man}",
+ "ETCDIR=#{etc}"
- system "make install CC=#{ENV.cc} PREFIX=#{prefix} MANDIR=#{man} ETCDIR=#{etc}"
etc.install "dwatch.conf"
end
def test
- system "dwatch -h" # not that it HAS -h. bitches, but exits 0
+ # '-h' is not actually an option, but it exits 0
+ system "#{bin}/dwatch -h"
end
end