aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-09-06 17:50:12 -0500
committerJack Nagel2012-09-06 17:50:12 -0500
commite8111247320cf13150462be6a45aa6cd4cd79161 (patch)
tree4bed39204efa7abfe1deb331821a4817577a4ea2 /Library
parent88ea00556cf99c084c03b0eb5186b4fd85e9bc54 (diff)
downloadhomebrew-e8111247320cf13150462be6a45aa6cd4cd79161.tar.bz2
Use FileUtils.touch instead of shelling out
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/avra.rb3
-rw-r--r--Library/Formula/erlang.rb2
-rw-r--r--Library/Formula/samba.rb2
3 files changed, 4 insertions, 3 deletions
diff --git a/Library/Formula/avra.rb b/Library/Formula/avra.rb
index ee6f161c8..9ea37caec 100644
--- a/Library/Formula/avra.rb
+++ b/Library/Formula/avra.rb
@@ -9,7 +9,8 @@ class Avra < Formula
def install
# build fails if these don't exist
- system "touch NEWS ChangeLog"
+ touch 'NEWS'
+ touch 'ChangeLog'
cd "src" do
system "./bootstrap"
system "./configure", "--prefix=#{prefix}"
diff --git a/Library/Formula/erlang.rb b/Library/Formula/erlang.rb
index 7c70d3443..6ebfc5ebc 100644
--- a/Library/Formula/erlang.rb
+++ b/Library/Formula/erlang.rb
@@ -91,7 +91,7 @@ class Erlang < Formula
end
system "./configure", *args
- system "touch lib/wx/SKIP" if MacOS.snow_leopard?
+ touch 'lib/wx/SKIP' if MacOS.version >= :snow_leopard
ENV.j1 # Parallel builds not working again as of at least R15B01
system "make"
system "make install"
diff --git a/Library/Formula/samba.rb b/Library/Formula/samba.rb
index fdc3b8d49..7dbae19b9 100644
--- a/Library/Formula/samba.rb
+++ b/Library/Formula/samba.rb
@@ -28,7 +28,7 @@ class Samba < Formula
"--with-configdir=#{prefix}/etc"
system "make install"
(prefix/'etc').mkpath
- system "touch", "#{prefix}/etc/smb.conf"
+ touch prefix/'etc/smb.conf'
end
end
end