452 Commits

Author SHA1 Message Date
Adam Vandenberg
f50f2f8d52 Tweak unknown command message 2010-09-29 22:01:08 -07:00
Adam Vandenberg
76dcc1929b refactor compiler messages 2010-09-29 21:52:55 -07:00
Adam Vandenberg
2bb9fa1b22 Bump Xcode recommendation to 3.2.3 2010-09-07 13:23:43 -07:00
Adam Vandenberg
fc7a0be039 Add ruby target to --config 2010-09-06 09:30:34 -07:00
Adam Vandenberg
4f56674c72 Remove HOMEBREW_CACHE from "brew --config"
HOMEBREW_CACHE isn't really helpful in diagnosing problems, and some
people don't like their username / home folder going into bug reports
on the web, so let's take it out.
2010-08-23 20:57:49 -07:00
Adam Vandenberg
29ac164565 Tweak 'report error' message. 2010-08-15 15:20:24 -07:00
Adam Vandenberg
741acf916e Add 'brew deps --all' 2010-08-13 09:45:27 -07:00
Adam Vandenberg
77c70ec472 Add "brew uses --installed"
Passing --installed will limit the list to formulae that you have installed.
Documented this and "brew deps --1" which limits the dependency list to
one level down (direct dependencies).
2010-08-11 20:54:29 -07:00
Adam Vandenberg
64cf554a7b Fix uses/deps for Leopard 2010-08-11 20:43:31 -07:00
Adam Vandenberg
2a80303960 Add shortcut 'brew dr'. 2010-08-09 21:03:02 -07:00
Adam Vandenberg
e2f0e1a26f Resolve aliases in 'brew edit'. 2010-08-07 22:15:29 -07:00
Adam Vandenberg
7c4adde96a 0.7 Remove deprecated make command 2010-08-07 18:08:54 -07:00
Adam Vandenberg
f990f083e8 ARGV - rename method that conflicts with optparse
optparse adds an "options" method to ARGV, and so does Homebrew.
Rename this method (and remove optparse blocking script) so that
Homebrew plays nicer with external Ruby software.

This fixes the issue where "gem install thin" would break
"brew server", for instance.
2010-08-07 18:08:51 -07:00
Adam Vandenberg
1c3f0e43de add URLs to brew info 2010-08-07 18:08:49 -07:00
Adam Vandenberg
c5a1171620 Fix brew info 2010-08-07 18:08:49 -07:00
Max Howell
3b106ea205 Significantly simpler brew uses and brew deps
Partly simpler because the output is less pretty. But I think the output is
now more useful for other tools. And comma separated lists aren't particularly
human-readable IMO either.
2010-08-07 18:08:49 -07:00
Adam Vandenberg
7768e59a50 Show changed examples on update [telemachus]
* Also move updater output into the class itself
2010-08-07 18:08:48 -07:00
Martin Kühl
da7854401d Automatically enable external brew commands.
* Add path to external command examples to PATH.
* Only add them to PATH from inside Homebrew.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>

* Move external commands path down near check
2010-08-07 18:08:48 -07:00
Adam Vandenberg
2e881238de Add name to brew info url and remove external script 2010-07-29 08:40:22 -07:00
Adam Vandenberg
5d3a226149 Fix brew info --all 2010-07-25 11:26:00 -07:00
Adam Vandenberg
b2d034b661 brew deps --1 does not recurse 2010-07-21 09:09:15 -07:00
Max Howell
bc5ee7c482 brew.h info takes a formula parameter rather than a string
* Preference is for commands to take instantiated formulae as parameters
  rather than formula names, so alias resolution can be centralized.
2010-07-18 13:52:01 -07:00
Kyle Fuller
161296e5c6 When outputting a brew install -vd insert the formula name
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-07-14 07:19:03 -07:00
Adam Vandenberg
ee794cd21a Add command "brew --env"
"brew --env" will set up a build environment and then dump certain ENV
variables (CC, CXX, LD, CFLAGS, CXXFLAGS, MAKEFLAGS).

If any of CC, CXX, LD are symlinks, now also output the target compiler.
(Typically these will be symlinks from eg /usr/bin/cc to /usr/bin/gcc-4.2).

This is a diagnostic command which may be merged into --config, turned
into an external command, or removed if it doesn't turn out to be useful.
2010-07-13 14:20:52 -07:00
Adam Vandenberg
0cc253964b Remove un-needed 'unless' in brew update 2010-07-08 22:41:51 -07:00
Adam Vandenberg
40c8af111f Move data into updater class 2010-07-03 23:22:51 -07:00
Adam Vandenberg
ecb5ce103e Remove $PATH from --config and build dumps.
While it is useful to be able to see the user's path in bug reports, it is
perhaps slightly too intrusive to post this without the user's permission.

A path can have usernames or other project sensitive information, and several
Homebrew users were editing their bug reports to omit this information.

`brew doctor` will still report on the path issues that we typically care
about, so dropping automatic posting of PATH.
2010-07-02 09:34:40 -07:00
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