aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMisty De Meo2013-03-21 08:17:26 -0500
committerMisty De Meo2013-03-21 08:37:51 -0500
commit3608c33429bdd8a57aa55991533f6d89a038bce7 (patch)
tree701c1f0641b50ca137860469312e7a8ede03dc4a /Library/Formula
parentde693367199097b925162144eec4c5265e4d42e8 (diff)
downloadhomebrew-3608c33429bdd8a57aa55991533f6d89a038bce7.tar.bz2
Replace remaining shelled-out `which`es
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/auctex.rb2
-rw-r--r--Library/Formula/pgplot.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/auctex.rb b/Library/Formula/auctex.rb
index 6e51fed7f..411facf54 100644
--- a/Library/Formula/auctex.rb
+++ b/Library/Formula/auctex.rb
@@ -19,7 +19,7 @@ class Auctex < Formula
return a.sub('--with-emacs=', '')
end
end
- return `which emacs`.chomp
+ return which 'emacs'
end
def install
diff --git a/Library/Formula/pgplot.rb b/Library/Formula/pgplot.rb
index 4462f844c..41419f148 100644
--- a/Library/Formula/pgplot.rb
+++ b/Library/Formula/pgplot.rb
@@ -34,7 +34,7 @@ class Pgplot < Formula
# re-hardcode the share dir
inreplace 'src/grgfil.f', '/usr/local/pgplot', share
# perl may not be in /usr/local
- inreplace 'makehtml', '/usr/local/bin/perl', `which perl`.chomp
+ inreplace 'makehtml', '/usr/local/bin/perl', which('perl')
# prevent a "dereferencing pointer to incomplete type" in libpng
inreplace 'drivers/pndriv.c', 'setjmp(png_ptr->jmpbuf)', 'setjmp(png_jmpbuf(png_ptr))'
@@ -58,7 +58,7 @@ LIBS="#{ENV.ldflags} -lX11"
MOTIF_LIBS=""
ATHENA_LIBS=""
TK_LIBS=""
-RANLIB="#{`which ranlib`.chomp}"
+RANLIB="#{which 'ranlib'}"
SHARED_LIB="libpgplot.dylib"
SHARED_LD="#{ENV['FC']} -dynamiclib -single_module $LDFLAGS -lX11 -install_name libpgplot.dylib"
SHARED_LIB_LIBS="#{ENV.ldflags} -lpng -lX11"