diff options
| author | David Holm | 2014-03-29 16:06:52 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-03-29 10:14:59 -0500 |
| commit | 5468a0f67129305e0b891c3f08fdaf11fc796e98 (patch) | |
| tree | 7eb14f6b026dfc47a1bac32ee25145498c30aa12 /Library/Formula/pmd.rb | |
| parent | aab62c5308e006db4cb41774eda94f78b3813a43 (diff) | |
| download | homebrew-5468a0f67129305e0b891c3f08fdaf11fc796e98.tar.bz2 | |
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 #27973.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/pmd.rb')
| -rw-r--r-- | Library/Formula/pmd.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/pmd.rb b/Library/Formula/pmd.rb index 5a255bef4..042ff4649 100644 --- a/Library/Formula/pmd.rb +++ b/Library/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 |
