aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authoreregon2011-08-17 02:39:20 +0200
committerAdam Vandenberg2011-08-19 09:51:32 -0700
commit34ba5033aeb2b8dd529d07d0a7a961f85a144af0 (patch)
tree5723f2028ed957892647362a013fbc948114740f /Library
parenta9fa8633b59ff863e841f21d78a83906a1233be8 (diff)
downloadhomebrew-34ba5033aeb2b8dd529d07d0a7a961f85a144af0.tar.bz2
highlight's conf_dir should end with /
Otherwise, it produces a runtime error: "cannot open /usr/local/etc/highlightfiletypes.conf: No such file or directory" Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/highlight.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Formula/highlight.rb b/Library/Formula/highlight.rb
index 7a5830d65..a4fc6c2b9 100644
--- a/Library/Formula/highlight.rb
+++ b/Library/Formula/highlight.rb
@@ -9,7 +9,8 @@ class Highlight < Formula
depends_on 'lua'
def install
- system "make", "PREFIX=#{prefix}", "conf_dir=#{etc}/highlight"
- system "make", "PREFIX=#{prefix}", "conf_dir=#{etc}/highlight", "install"
+ conf_dir = etc+'highlight/' # highlight needs a final / for conf_dir
+ system "make", "PREFIX=#{prefix}", "conf_dir=#{conf_dir}"
+ system "make", "PREFIX=#{prefix}", "conf_dir=#{conf_dir}", "install"
end
end