From 6c61f54c8a83f12eb3b83d906908f033c8e9e36d Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Thu, 21 Mar 2013 08:17:26 -0500 Subject: [PATCH] Replace remaining shelled-out `which`es --- Formula/auctex.rb | 2 +- Formula/pgplot.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Formula/auctex.rb b/Formula/auctex.rb index 6e51fed7f0..411facf544 100644 --- a/Formula/auctex.rb +++ b/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/Formula/pgplot.rb b/Formula/pgplot.rb index 4462f844cf..41419f1481 100644 --- a/Formula/pgplot.rb +++ b/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"