aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2014-02-25 07:34:45 -0800
committerAdam Vandenberg2014-02-25 20:29:08 -0800
commit9055c1e3617269e2d28f97addf4d56f6b57d348a (patch)
tree0aa5bebe638d11c23c15e06ac48f6316a9577657 /Library
parentc189dd6e20a61985d3b07f796132d301bc765a34 (diff)
downloadbrew-9055c1e3617269e2d28f97addf4d56f6b57d348a.tar.bz2
add scons helper
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index ee429073b..ceee01a3c 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -148,6 +148,14 @@ 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?