Previously "brew cleanup" would complain if the most recent
version of a brew wasn't installed.
We now suppress this message if only one (outdated) formula is
present.
The previous code works fine on ruby 1.8.x, but under 1.9 trying
find on a non-existent folder gives:
==> No such file or directory
/usr/local/Cellar/ruby/1.9.1-p378/lib/ruby/1.9.1/find.rb:38:in `block in find'
FixesHomebrew/homebrew#1633
The TeX-live 2008 formula was out of date (there's a 2009), buggy,
and doesn't build 64-bit.
The MacTeX package works and is supported, with a 2010 version in the works.
Let's recommend that instead.
FixesHomebrew/homebrew#1087
The code to try to move man into share didn't seem to be working, since
the code that warns if a top-level man was found was firing off.
Removing this apparently dead code.
Different llvm binaries were used to check build numbers and to compile with.
Normalize this, and normalize the variable name used to hold the xcode location.
(Calling it "prefix" is confusing, since there are already concepts in Homebrew
called "prefx".)
* Adds GCC 4.0 version info to --config output.
* Splits gcc_build into gcc_40_build and gcc_42_build.
* Adds alias gcc_build to gcc_42_build for compatibility.
* Updates Xcode checking to also check GCC 4.0 version.
These changes are a combination of work by AdamV and my work
on my Tiger branch. This information would be useful for all
installs since some formulae compile with GCC 4.0.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Lets stop removing docs and doc (though moving share/docs to share/doc would make sense) as I was being lame when I decided nobody ever needs local documentation.
I still wouldn't use it (the INTRAWEBS is pretty good nowadays), but I admit, for some people, it's essential.
Running `brew cleanup` (with no arguments or multiple arguments) raises
an error and stops as soon as it finds any formula whose most recent
version is not installed.
With this change it will instead print a warning, then continue with the
next formula.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Running `brew cleanup` (with no arguments or multiple arguments) will
run `brew prune` after _every_ cleaned formula, i.e. possibly after
every installed formula.
With this change it will instead only run `prune` after all formulae are
cleaned, and only when no arguments were given to `cleanup`.
Signed-off-by: Max Howell <max@methylblue.com>
ClosesHomebrew/homebrew#743
If the formula was updated and not yet installed, then cleanup would delete all kegs. Which is most likely not what the user wanted.
Ideally we'd do a version check to figure out which keg is newest. But we don't yet have a function that can determine with accuracy version order.
Not using path.basename for mktemp due to risk of bugs due to incorrect escaping. But mainly, mktemp gives a unique name and this operation is procedural.