Previous version didn't compile on Snow Leopard.
TODO: Enable Guile support if requested, or if Guile has previously
been installed. I'll leave it for any Guile users out there to provide
a patch.
The code in Keg.self.for path uses "path = path.parent.realpath" to walk
up subfolders looking for a Keg.
Because 'realpath' is in there, and the path is checked against
HOMEBREW_CELLAR, which may be a symlink, we need to do realpath-to-realpath
comparisons in Keg. Otherwise, we will hit equivalent but symlinked folders,
not see that they are the same, and walk all the way up to / and then
error out.
If an exception is thrown while parsing the formula file before the install.rb at_exit then it will be in $!. Marshal it back to the parent brew process.
Because the system comes with them. Having two of these is just complicated.
They are both gems themselves, so gem that is already installed manages them.
Optional flag to install them anyway.
This doesn't have a configure script, and the Makefile is basic. Installation
steps are based on the macports portfile.
Signed-off-by: Max Howell <max@methylblue.com>
Replaced most system calls with Ruby equivalents.
Rather than showing a backtrace that says "couldn't find command blah". Admittedly it's possible that the error will be something else, but unlikely. And this is neater.
Ideally we'd push the bt through an error pipe like we do with install.rb. And I guess we'll do this eventually.
It's a great feature but it seems to conflict with our new system() replacement. Clearly the bug is still in our system() but what exactly it is is not clear and this bug sucks.
See #124
This is newer than the OS X provided Grep, and has new features required by
the nice_find plugin for TextMate:
http://github.com/briancollins/nice_find
"OS X grep doesn't support --exclude-dir and --exclude only works on filenames"