diff options
| author | Jack Nagel | 2012-05-07 20:54:56 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2012-05-07 21:05:55 -0500 | 
| commit | f944ac3aa059d829fdb0db57ee6bf8d8958d9534 (patch) | |
| tree | 0957c016d55a8a43984c2578caab29b33f42dca3 | |
| parent | 76604c1cd5e5a925310db3734df39f4cb5fc21ea (diff) | |
| download | homebrew-f944ac3aa059d829fdb0db57ee6bf8d8958d9534.tar.bz2 | |
Convert some /usr/bin/which calls to use the 'which' method
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
| -rw-r--r-- | Library/Formula/couchdb-lucene.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/cvs2svn.rb | 2 | ||||
| -rw-r--r-- | Library/Formula/rrdtool.rb | 4 | 
3 files changed, 4 insertions, 4 deletions
| diff --git a/Library/Formula/couchdb-lucene.rb b/Library/Formula/couchdb-lucene.rb index c31088ee3..f7fc00ae5 100644 --- a/Library/Formula/couchdb-lucene.rb +++ b/Library/Formula/couchdb-lucene.rb @@ -37,7 +37,7 @@ class CouchdbLucene < Formula  os_process_timeout=60000 ; increase the timeout from 5 seconds.  [external] -fti=#{`which python`.chomp} #{prefix}/tools/couchdb-external-hook.py +fti=#{which 'python'} #{prefix}/tools/couchdb-external-hook.py  [httpd_db_handlers]  _fti = {couch_httpd_external, handle_external_req, <<"fti">>} diff --git a/Library/Formula/cvs2svn.rb b/Library/Formula/cvs2svn.rb index 6538a80b6..9dd5b2a13 100644 --- a/Library/Formula/cvs2svn.rb +++ b/Library/Formula/cvs2svn.rb @@ -5,7 +5,7 @@ class PythonWithGdbm < Requirement      The Python being used does not include gdbm support,      but it is required to build this formula: -      #{`which python`.chomp} +      #{which 'python'}      Homebrew's Python includes gdbm support.      EOS diff --git a/Library/Formula/rrdtool.rb b/Library/Formula/rrdtool.rb index b6e5e3900..9a02ee556 100644 --- a/Library/Formula/rrdtool.rb +++ b/Library/Formula/rrdtool.rb @@ -26,8 +26,8 @@ class Rrdtool < Formula      ENV.libxml2      ENV.x11 -    which_perl = `/usr/bin/which perl`.chomp -    which_ruby = `/usr/bin/which ruby`.chomp +    which_perl = which 'perl' +    which_ruby = which 'ruby'      opoo "Using system Ruby. RRD module will be installed to /Library/Ruby/..." if which_ruby == "/usr/bin/ruby"      opoo "Using system Perl. RRD module will be installed to /Library/Perl/..." if which_perl == "/usr/bin/perl" | 
