475 Commits

Author SHA1 Message Date
Adam Vandenberg
cdb5b2e0d5 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
a1fcbdcefb Add fink/macports support to 'brew search'. 2010-06-22 16:04:27 -07:00
Adam Vandenberg
d84b8cf288 Extract search_brews method 2010-06-17 11:42:24 -07:00
Adam Vandenberg
69b9901131 Move code to find outdated brew list 2010-06-16 09:52:20 -07:00
Adam Vandenberg
07914a48ee Reduce nesting in 'brew up'. 2010-06-15 21:48:33 -07:00
Trevor Stevens
b9bb078642 Modify brew update to show if any formulae were removed. 2010-06-15 21:45:56 -07:00
Adam Vandenberg
1761ba66bf Failures during ./configure should mention config.log. 2010-06-10 12:57:51 -07:00
Adam Vandenberg
b016c2eae5 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
385e3637f2 Remove silly concatenation. 2010-06-07 14:15:45 -07:00
Adam Vandenberg
115940dbeb 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
ff9c50151d Fix typo in comment. 2010-06-03 09:55:08 -07:00
Adam Vandenberg
48bfd8a585 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
43c8bec720 Handle search with no arguments.
Fixes Homebrew/homebrew#1514.
2010-06-01 19:10:32 -07:00
Adam Vandenberg
54655a681f Escape search terms. Fixes Homebrew/homebrew#1475 2010-06-01 13:02:19 -07:00
Adam Vandenberg
b72ddaa424 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
4fb29767fe 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
9ba8d5ede8 Move dump_build_env to utils and use during installs too. 2010-05-06 07:23:59 -07:00
Adam Vandenberg
59941733c4 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
0f7b3bd408 Publicize 'brew doctor' in build failure message. 2010-04-20 12:29:17 -07:00
Adam Vandenberg
f144dcab60 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
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