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 <mike@mikemcquaid.com>
This commit is contained in:
David Holm 2014-03-29 16:06:52 +01:00 committed by Mike McQuaid
parent acff78b70e
commit c058b90c73

View file

@ -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