aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2014-02-28 07:20:52 -0800
committerAdam Vandenberg2014-02-28 07:20:52 -0800
commit27c8af861c54de36d09b2ace9b61ff914da93c9b (patch)
tree331d1439877a0c957f825dfdbf55cd43944eb79f /Library
parent46d446397e8de975f3b15210919367eddb6ec8da (diff)
downloadhomebrew-27c8af861c54de36d09b2ace9b61ff914da93c9b.tar.bz2
move scons helper to fileutils
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/fileutils.rb8
-rw-r--r--Library/Homebrew/utils.rb8
2 files changed, 8 insertions, 8 deletions
diff --git a/Library/Homebrew/extend/fileutils.rb b/Library/Homebrew/extend/fileutils.rb
index c2c36dc40..70377483a 100644
--- a/Library/Homebrew/extend/fileutils.rb
+++ b/Library/Homebrew/extend/fileutils.rb
@@ -82,6 +82,14 @@ module FileUtils extend self
end
end
+ # Run scons using a Homebrew-installed version, instead of whatever
+ # is in the user's PATH
+ def scons *args
+ scons = Formulary.factory("scons").opt_prefix/'bin/scons'
+ raise "#{scons} is not executable" unless scons.exist? and scons.executable?
+ safe_system scons, *args
+ end
+
def rake *args
system RUBY_BIN/'rake', *args
end
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index ceee01a3c..ee429073b 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -148,14 +148,6 @@ def curl *args
safe_system curl, *args
end
-# Run scons using a Homebrew-installed version, instead of whatever
-# is in the user's PATH
-def scons *args
- scons = Formulary.factory("scons").opt_prefix/'bin/scons'
- raise "#{scons} is not executable" unless scons.exist? and scons.executable?
- safe_system scons, *args
-end
-
def puts_columns items, star_items=[]
return if items.empty?