| 
									
										
										
										
											2014-06-19 17:57:36 -05:00
										 |  |  | require "extend/ENV" | 
					
						
							| 
									
										
										
										
											2015-11-13 16:43:43 +01:00
										 |  |  | require "build_environment" | 
					
						
							| 
									
										
										
										
											2010-09-11 20:22:54 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-06-18 22:41:47 -05:00
										 |  |  | module Homebrew | 
					
						
							| 
									
										
										
										
											2010-09-11 20:22:54 +01:00
										 |  |  |   def __env | 
					
						
							| 
									
										
										
										
											2013-08-19 12:32:56 -05:00
										 |  |  |     ENV.activate_extensions! | 
					
						
							| 
									
										
										
										
											2015-06-17 22:03:50 -04:00
										 |  |  |     ENV.deps = ARGV.formulae if superenv? | 
					
						
							| 
									
										
										
										
											2010-09-11 20:22:54 +01:00
										 |  |  |     ENV.setup_build_environment | 
					
						
							| 
									
										
										
										
											2011-12-31 21:22:22 -06:00
										 |  |  |     ENV.universal_binary if ARGV.build_universal? | 
					
						
							| 
									
										
										
										
											2014-09-14 01:26:45 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-03-02 00:59:22 +00:00
										 |  |  |     if $stdout.tty? | 
					
						
							|  |  |  |       dump_build_env ENV | 
					
						
							|  |  |  |     else | 
					
						
							| 
									
										
										
										
											2014-05-20 19:12:06 -05:00
										 |  |  |       build_env_keys(ENV).each do |key| | 
					
						
							| 
									
										
										
										
											2012-03-02 00:59:22 +00:00
										 |  |  |         puts "export #{key}=\"#{ENV[key]}\"" | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |     end | 
					
						
							| 
									
										
										
										
											2010-09-11 20:22:54 +01:00
										 |  |  |   end | 
					
						
							|  |  |  | end |