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
commitf3cb1d2b0614e3dcfe2e2911e65bfd24511a2fc2 (patch)
tree105313ca7fe29c085cfcb782814af69b5f2fc896 /Library/Homebrew/build.rb
parent1d039ebf2bd9e3fb7b1f753f616fe0a5f8bcba3b (diff)
downloadhomebrew-f3cb1d2b0614e3dcfe2e2911e65bfd24511a2fc2.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'