From c058b90c7398e232082c346c13e462fdf67567aa Mon Sep 17 00:00:00 2001 From: David Holm Date: Sat, 29 Mar 2014 16:06:52 +0100 Subject: [PATCH] pmd: fix script paths. The script to launch pmd would look for its libexec path relative to the binary. This works fine if running the binary from the cellar but it won't work if running from $(brew --prefix)/bin. Closes Homebrew/homebrew#27973. Signed-off-by: Mike McQuaid --- Formula/pmd.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/pmd.rb b/Formula/pmd.rb index 5a255bef4e..042ff46492 100644 --- a/Formula/pmd.rb +++ b/Formula/pmd.rb @@ -15,7 +15,7 @@ class Pmd < Formula # the run script references paths which don't account for the # file structure of this brew. - inreplace "#{libexec}/bin/run.sh", "/../lib", "/../libexec/lib" + inreplace "#{libexec}/bin/run.sh", "${script_dir}/../lib", "#{libexec}/lib" end def caveats; <<-EOS.undent