aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/fileutils.rb
diff options
context:
space:
mode:
authorJack Nagel2014-02-27 21:47:38 -0600
committerJack Nagel2014-02-27 21:53:21 -0600
commit7046e4e37b87c08575d14263bdce763456b9ec2c (patch)
tree1f8a506a547bbb64f6c1026c2d5431b27dd7766c /Library/Homebrew/extend/fileutils.rb
parent9a18e85a7c77dd8adef4e1c34f564ab08fed5c2a (diff)
downloadhomebrew-7046e4e37b87c08575d14263bdce763456b9ec2c.tar.bz2
Add an xcodebuild helper and deprecate system "xcodebuild"
In the future we can remove the ENV munging branch from Formula#system. Closes #27081.
Diffstat (limited to 'Library/Homebrew/extend/fileutils.rb')
-rw-r--r--Library/Homebrew/extend/fileutils.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/fileutils.rb b/Library/Homebrew/extend/fileutils.rb
index 6a45ad51f..c2c36dc40 100644
--- a/Library/Homebrew/extend/fileutils.rb
+++ b/Library/Homebrew/extend/fileutils.rb
@@ -90,4 +90,11 @@ module FileUtils extend self
def ruby *args
system RUBY_PATH, *args
end
+
+ def xcodebuild *args
+ removed = ENV.remove_cc_etc
+ system "xcodebuild", *args
+ ensure
+ ENV.update(removed)
+ end
end