305 Commits

Author SHA1 Message Date
Adam Vandenberg
21aaf5d9ea Move brew doctor to its own source file; will get bigger. 2010-04-06 08:22:27 -07:00
Max Howell
dc30e941e7 brew doctor 2010-04-06 08:22:27 -07:00
Adam Vandenberg
81f87c69ac Update dump_build_env
* Reorder a flag
* Don't show values if they are empty
2010-04-03 23:24:01 -07:00
Adam Vandenberg
e05c728e45 Add PKG_CONFIG_PATH to env dump, since brew modifies it. 2010-04-01 09:58:16 -07:00
Adam Vandenberg
d9548ae4b0 Add --use-llvm flag to build environment output. 2010-03-17 15:46:15 -07:00
Adam Vandenberg
3825535310 Move recommended compiler versions into constants. 2010-03-16 20:58:12 -07:00
Robert Shaw
ca313defe4 Add GCC 4.0 info to --config output.
* 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>
2010-03-16 20:46:10 -07:00
Adam Vandenberg
1e9c7df871 Add HOMEBREW_USE_LLVM to ENV vars shown for build errors. 2010-03-14 21:59:49 -07:00
Adam Vandenberg
485d480722 Add a snapshot of ENV to BuildError and show some flags with the stack trace. 2010-03-11 15:58:17 -08:00
Max Howell
de08865203 Plain brew log shows the entire Homebrew git log 2010-03-10 13:00:41 +00:00
Adam Vandenberg
9f46adeeab Move --cache command down near --prefix and use AGRV.formulae. 2010-03-03 09:41:05 -08:00
Martin Kuehl
5fc319236f Add support for brew --prefix [formula ...].
When `brew --prefix` is called with arguments, assume each argument is a
formula and print their prefixes instead.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-03 09:25:56 -08:00
Adam Vandenberg
5e1632c1e2 Add 'rebase' to accidental git commands. 2010-02-27 19:33:16 -08:00
Max Howell
70bfe518ec brew outdated works if there is eg. Cellar/.DS_Store 2010-02-27 17:21:55 +00:00
Max Howell
74c44a20e0 brew outdated
brew install `brew outdated` will work

Apologies that this is long overdue.

Fixes Homebrew/homebrew#838
2010-02-27 13:29:49 +00:00
Adam Vandenberg
080a7ee3dc brew --cache [formula]
This developer-oriented command lets you ask Homebrew what the cached
filename will be for a brew's tarball.
2010-02-24 11:15:12 -08:00
Adam Vandenberg
0d73cbbc53 Add brew --cellar command.
The Cellar may not actually be "`brew --prefix`/Cellar".
We support the Cellar existing only in the repo but
not linked into the prefix, for installs that aren't
directly in /usr/local (or other chosen prefix.)
2010-02-18 13:29:28 -08:00
Martin Kuehl
e3a9e961bf Fix brew cleanup: less pruning
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>

Closes Homebrew/homebrew#743
2010-02-16 22:52:18 +00:00
Andre Arko
1a2c5160c5 Don't abort cleanup if formulae are missing 2010-02-11 17:05:38 -08:00
Max Howell
95fc24ecd1 Only try to cleanup directories 2010-01-18 08:36:29 +00:00
Max Howell
16132cab6b Use Ruby rather than external commands
`ls` could go wrong more than Pathname.children
2010-01-18 08:34:07 +00:00
Joshua Peek
0d84f3ee17 Add cleanup command
* `brew cleanup foo` removes any unlinked foo kegs
* `brew cleanup` removes all unlinked kegs
2010-01-18 08:27:50 +00:00
Adam Vandenberg
9dc39c391a Some bulletproofing for bash completion script.
Since Homebrew's Library doesn't have to be linked under prefix,
we need to do some extra work in the bash completion script to
support this configuration.

Added a "--repository" option to brew, and updated the completion
script to use paths relative to this location.
2010-01-16 15:33:32 +00:00
Adam Vandenberg
be842ee554 Fixes Homebrew/homebrew#168 - don't show multiple copies of the same dep. 2010-01-16 15:33:31 +00:00
Adam Vandenberg
0bc1127f54 Add recommended GCC & LLVM versions to --config. 2010-01-16 15:26:54 +00:00
Max Howell
0a27f041d0 Print quotes around executed arguments with spaces
Eg: ['foo', 'bar la'] -> "foo 'bar la'"
2010-01-13 11:23:15 +00:00
Adam Vandenberg
24b6e9c721 Detect X11 when ENV.x11 is requested; dump in --config. 2010-01-11 11:36:35 -08:00
Max Howell
56351558b8 Check GitHub for issues relating to build failures
Uses the GitHub issue search API, so it's very neat and concise. However you can get false positives, so it's not 100% useful. Still I think it is more useful than before, which was, nothing.

A further issue is it depends on the ticket at GitHub using the formula's proper name. So we should ensure this as we can.

Finally, it does add a possibly large delay to clean exit after a build error. We may want to fiddle with timeouts if it becomes troublesome.
2010-01-06 23:38:07 +00:00
Max Howell
62ef92b837 If Xcode isn't installed, raise
We were raising but in a completely misleading and unintended fashion.
2009-12-30 20:52:06 +00:00
Alexander Solovyov
650d1cb165 brew: add 'cat' command 2009-12-22 05:49:31 +00:00
Adam Vandenberg
70176cb0ec Another git command. 2009-12-12 16:24:15 +00:00
Adam Vandenberg
8443c9be7d Some small style reformats 2009-12-12 16:24:15 +00:00
Max Howell
635cb27d13 Unlink before uninstalling
Nice bug there where we never removed any symlinks, because the unlink step requires the keg to be full of files to determine what symlinks to remove.
2009-12-12 16:23:03 +00:00
Max Howell
4254661c66 Brew update will git init if required
This is necessary for those who installed Homebrew using the suggested tarball method.

Too late for them though.
2009-12-07 18:20:04 +00:00
Max Howell
54aff61ef6 Prompt user to use pip for Hg and Bzr 2009-12-05 17:29:49 +00:00
Max Howell
bf07b9662a Puts URL for failed build line 2009-12-04 10:36:25 +00:00
Max Howell
b70367fa96 cd HOMEBREW_REPOSITORY before trying to git info it 2009-12-02 13:07:20 +00:00
Max Howell
dd0df9bd37 Show exit status properly
Turns out $?.to_i is a 16bit int with some bit flags in the first byte.
2009-12-02 13:07:03 +00:00
Max Howell
c76e0156d7 We don't need the whole backtrace for BuildErrors 2009-12-02 12:31:44 +00:00
Max Howell
1dc9df13fb We can't rely on the $: order
Some gems and libraries seem to change the order.
2009-12-01 12:07:34 +00:00
Max Howell
9294e19859 brew --config output improved if no GCC 2009-12-01 12:07:34 +00:00
Adam Vandenberg
411874e0b6 Add command 'brew info --all'. 2009-11-19 14:03:08 -08:00
Adam Vandenberg
7366a41268 New command 'brew deps [formula]'
Where brew info will show the next-level-down dependencies, brew deps
will show all of the formulae that a given formula depends on.
2009-11-19 14:03:07 -08:00
Adam Vandenberg
95e398ab13 Add alias support to formulae
* brew install will find an aliased formula
* aliases are searched against
* warn when creating a new formula that has an existing alias.

If Subversion has an alias "svn", then warn when the user tries to
create a new formula "svn". The formula can still be created, though
the user should make sure it's not a duplicate of the existing
aliased one.

Subversion and Objective-Caml formulas get some alises here, so we have
something to test against.
2009-11-19 14:03:07 -08:00
Adam Vandenberg
af29299f37 Add brew command 'uses'
'uses' shows the formulas that depend on a formula given on the
command-line.
2009-11-19 14:03:07 -08:00
Adam Vandenberg
59a686e3c2 Add extra message for unknown commands that are git commands. 2009-11-19 14:03:07 -08:00
Adam Vandenberg
be412369ae Also allow 'brew help'. 2009-11-19 14:03:07 -08:00
Adam Vandenberg
34c213097e Fix when 'edit' if/else indentation 2009-11-19 14:03:06 -08:00
Adam Vandenberg
4fbcf13e65 Move some helper functions into Hardware 2009-11-19 14:03:06 -08:00
Max Howell
00e227ac46 More tweaking of main exception handler output 2009-11-12 01:37:02 +00:00