Commit Graph
205 Commits
Author SHA1 Message Date
Adam Vandenberg 5b83d260ea Move brew doctor to its own source file; will get bigger. 2010-04-06 08:22:27 -07:00
Max Howell 60796b75cb brew doctor 2010-04-06 08:22:27 -07:00
Adam Vandenberg 3fb2560554 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 e2c6d2656d Add PKG_CONFIG_PATH to env dump, since brew modifies it. 2010-04-01 09:58:16 -07:00
Adam Vandenberg 0806b9ce54 Add --use-llvm flag to build environment output. 2010-03-17 15:46:15 -07:00
Adam Vandenberg 9afb7a32f9 Move recommended compiler versions into constants. 2010-03-16 20:58:12 -07:00
Robert Shaw 74fa194401 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 423f8caca8 Add HOMEBREW_USE_LLVM to ENV vars shown for build errors. 2010-03-14 21:59:49 -07:00
Adam Vandenberg 7d8388057c 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 2988f1e15c Plain brew log shows the entire Homebrew git log 2010-03-10 13:00:41 +00:00
Adam Vandenberg d55635ae96 Move --cache command down near --prefix and use AGRV.formulae. 2010-03-03 09:41:05 -08:00
Martin Kuehl b0632795cf 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 7967dd85a1 Add 'rebase' to accidental git commands. 2010-02-27 19:33:16 -08:00
Max Howell 949e51fa9b brew outdated works if there is eg. Cellar/.DS_Store 2010-02-27 17:21:55 +00:00
Max Howell 9cf68409ee brew outdated
brew install `brew outdated` will work

Apologies that this is long overdue.

Fixes #838
2010-02-27 13:29:49 +00:00
Adam Vandenberg 2c7b412c2a 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 0887360e0b 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 73264f4396 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 #743
2010-02-16 22:52:18 +00:00
Andre Arko c1679de4e3 Don't abort cleanup if formulae are missing 2010-02-11 17:05:38 -08:00
Max Howell 708d6689a5 Only try to cleanup directories 2010-01-18 08:36:29 +00:00
Max Howell f5960ccd9e Use Ruby rather than external commands
`ls` could go wrong more than Pathname.children
2010-01-18 08:34:07 +00:00
Joshua Peek ffd39835ec 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 75b8a06e1c 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 5bcc1df847 Fixes #168 - don't show multiple copies of the same dep. 2010-01-16 15:33:31 +00:00
Adam Vandenberg b99ee98271 Add recommended GCC & LLVM versions to --config. 2010-01-16 15:26:54 +00:00
Max Howell 4f111dfd9a Print quotes around executed arguments with spaces
Eg: ['foo', 'bar la'] -> "foo 'bar la'"
2010-01-13 11:23:15 +00:00
Adam Vandenberg 79766ede79 Detect X11 when ENV.x11 is requested; dump in --config. 2010-01-11 11:36:35 -08:00
Max Howell d9dc06a0a7 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 8032b9bdcf 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 c477846c7d brew: add 'cat' command 2009-12-22 05:49:31 +00:00
Adam Vandenberg c25c47b2ae Another git command. 2009-12-12 16:24:15 +00:00
Adam Vandenberg 5e565022d6 Some small style reformats 2009-12-12 16:24:15 +00:00
Max Howell d83fe25248 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 b2fd885493 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 d9820d98d3 Prompt user to use pip for Hg and Bzr 2009-12-05 17:29:49 +00:00
Max Howell 5bae3b5a94 Puts URL for failed build line 2009-12-04 10:36:25 +00:00
Max Howell fb9c8cc707 cd HOMEBREW_REPOSITORY before trying to git info it 2009-12-02 13:07:20 +00:00
Max Howell a997d2c4a5 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 3b73417815 We don't need the whole backtrace for BuildErrors 2009-12-02 12:31:44 +00:00
Max Howell b5d132eca7 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 7ced6aaf9e brew --config output improved if no GCC 2009-12-01 12:07:34 +00:00
Adam Vandenberg c1d91ef443 Add command 'brew info --all'. 2009-11-19 14:03:08 -08:00
Adam Vandenberg b6ca4dcf81 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 84024e64e3 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 62cef23419 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 8a7b9ea189 Add extra message for unknown commands that are git commands. 2009-11-19 14:03:07 -08:00
Adam Vandenberg 246f44d735 Also allow 'brew help'. 2009-11-19 14:03:07 -08:00
Adam Vandenberg 8f3ff69665 Fix when 'edit' if/else indentation 2009-11-19 14:03:06 -08:00
Adam Vandenberg ef39adab33 Move some helper functions into Hardware 2009-11-19 14:03:06 -08:00
Max Howell 70bed07247 More tweaking of main exception handler output 2009-11-12 01:37:02 +00:00