aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/build.rb
diff options
context:
space:
mode:
authorJack Nagel2014-07-29 16:06:06 -0500
committerJack Nagel2014-07-29 16:22:06 -0500
commit3f12ddbccd8416d4355e0fd0efa8f95bc1a7632f (patch)
tree0c4693b736fbe17872487215a6b73ae534b8cecf /Library/Homebrew/build.rb
parente0c97177170f1238c53d0b9ecca8dd97bf74c03e (diff)
downloadbrew-3f12ddbccd8416d4355e0fd0efa8f95bc1a7632f.tar.bz2
Decouple DATA patches from the executing script
Diffstat (limited to 'Library/Homebrew/build.rb')
-rw-r--r--Library/Homebrew/build.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb
index 71fb519d2..4fd6c7929 100644
--- a/Library/Homebrew/build.rb
+++ b/Library/Homebrew/build.rb
@@ -1,14 +1,9 @@
# This script is loaded by formula_installer as a separate instance.
-# Rationale: Formula can use __END__, Formula can change ENV
# Thrown exceptions are propogated back to the parent process over a pipe
STD_TRAP = trap("INT") { exit! 130 } # no backtrace thanks
-at_exit do
- # the whole of everything must be run in at_exit because the formula has to
- # be the run script as __END__ must work for *that* formula.
- main
-end
+at_exit { main }
require 'global'
require 'cxxstdlib'