diff options
| author | Max Howell | 2009-08-04 00:26:07 +0100 |
|---|---|---|
| committer | Max Howell | 2009-08-04 00:35:27 +0100 |
| commit | 69d7e2a797de67fb038e035d999fc3abac02303e (patch) | |
| tree | 98ef9b0995e9c2898938d1791e5dec76ea29f621 /Library | |
| parent | a734b30a6818cb97b7f73dc303e1f19a55db7ad8 (diff) | |
| download | brew-69d7e2a797de67fb038e035d999fc3abac02303e.tar.bz2 | |
FIX brew install before Cache has yet been created
Closes Homebrew/homebrew#7
Cache directory is created when downloading tarballs, but the new
hw.model stuff compiles the hw.model.c file there.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/hw.model.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/hw.model.rb b/Library/Homebrew/hw.model.rb index 6ff81fb6e..a88bccb2e 100644 --- a/Library/Homebrew/hw.model.rb +++ b/Library/Homebrew/hw.model.rb @@ -1,4 +1,6 @@ def hw_model_output + require 'fileutils' + FileUtils.mkpath HOMEBREW_CACHE exe=Pathname.new(HOMEBREW_CACHE)+'hw.model' Kernel.system "gcc -Os #{File.dirname __FILE__}/hw.model.c -o #{exe}" unless exe.file? /(.*)(\d+),(\d+)/ =~ `#{exe}` |
