diff options
| author | Max Howell | 2009-08-04 00:26:07 +0100 |
|---|---|---|
| committer | Max Howell | 2009-08-04 00:35:27 +0100 |
| commit | 4f57f85b34a23bc93f18505756845b2b5e428a6b (patch) | |
| tree | 942c47fc98e328b88621a84eb1a3c6a18b5ed2b2 /Library | |
| parent | 8ea4f2404983ca15bf53138e2132ee80dcd097f4 (diff) | |
| download | homebrew-4f57f85b34a23bc93f18505756845b2b5e428a6b.tar.bz2 | |
FIX brew install before Cache has yet been created
Closes #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}` |
