Commit Graph
225 Commits
Author SHA1 Message Date
Adam Vandenberg 9670e0ebcc Extract "brew_install".
This was supposed to go in with the "brew-upgrade" external command,
but must have been lost in the merge.
2010-06-23 12:59:02 -07:00
Adam Vandenberg bd57166153 Add fink/macports support to 'brew search'. 2010-06-22 16:04:27 -07:00
Adam Vandenberg 66a98d9d23 Extract search_brews method 2010-06-17 11:42:24 -07:00
Adam Vandenberg 14946db06c Move code to find outdated brew list 2010-06-16 09:52:20 -07:00
Adam Vandenberg 8f0261a964 Reduce nesting in 'brew up'. 2010-06-15 21:48:33 -07:00
Trevor Stevens c134c8f9fa Modify brew update to show if any formulae were removed. 2010-06-15 21:45:56 -07:00
Adam Vandenberg 7a12e2c398 Failures during ./configure should mention config.log. 2010-06-10 12:57:51 -07:00
Adam Vandenberg fafcaaef99 Support external commands
Homebrew will now look for external commands that are +x on PATH, named
as "brew-<cmd>" or "brew-<cmd>.rb"

* Shell scripts are exec'd with some HOMEBREW variables set in the ENV.
* Ruby scripts are require'd directly.

See: http://wiki.github.com/mxcl/homebrew/external-commands
2010-06-07 21:43:08 -07:00
Adam Vandenberg 5e15e927ad Remove silly concatenation. 2010-06-07 14:15:45 -07:00
Adam Vandenberg 70d984b0cc Tweak the bin/brew command selector a bit.
* Move 'brew doctor' above both unknown command blocks and then...
* Merge unknown command blocks.

(This is cleanup for supporting external brew commands.)
2010-06-07 14:15:45 -07:00
Adam Vandenberg aee8618e39 Fix typo in comment. 2010-06-03 09:55:08 -07:00
Adam Vandenberg 52e46c83d9 Add "brew --cellar (formula)"
If a formula name is passed to "brew --cellar", output the location of that
brew in the Cellar (which will be "brew --prefix (formula)" without a version
sub-folder.)

This allows for:
  rm -rf `brew --cellar node`
for deleting all versions of node, installed or not.
2010-06-01 20:36:31 -07:00
Adam Vandenberg 924788a4ef Handle search with no arguments.
Fixes #1514.
2010-06-01 19:10:32 -07:00
Adam Vandenberg b9a086b179 Escape search terms. Fixes #1475 2010-06-01 13:02:19 -07:00
Adam Vandenberg 8101b09256 Link to pcc and tiger branches.
sceaga maintains Tiger and PPC support for Homebrew, so change our error
messages to refer to his branches.
2010-06-01 11:56:00 -07:00
Adam Vandenberg 03269c6315 Add "brew create --fink"
Similiar to "brew create --macports", using --fink will do the corresponding
search for Fink packages.
2010-05-26 19:15:16 -07:00
Adam Vandenberg 63bc05379a Move dump_build_env to utils and use during installs too. 2010-05-06 07:23:59 -07:00
Adam Vandenberg 083e2a4b45 brew list --versions [formulae]
Add a `--versions` switch to `brew list` that shows all versions found
in the cellar for the selected formulae.
2010-04-30 10:16:39 -07:00
Adam Vandenberg 59c2fb4df9 Publicize 'brew doctor' in build failure message. 2010-04-20 12:29:17 -07:00
Adam Vandenberg c6e8ec1045 Add PATH to --config and ENV dump.
A user's PATH can help diagnose ./configure and other problems in bug reports.
2010-04-14 09:56:28 -07:00
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