aboutsummaryrefslogtreecommitdiffstats
path: root/bin
AgeCommit message (Collapse)Author
2014-11-25Suppress output from `cd`Jack Nagel
Closes #34246.
2014-05-17convert tabs to spaces in bin/brewAdam Vandenberg
2014-05-02Quote argument to readlinkJack Nagel
2014-05-02Use parameter expansion to avoid forkingJack Nagel
2014-02-21Unset GEM_HOME and GEM_PATH before running brew.rbMisty De Meo
This was reported in Tigerbrew, but is a worthwhile fix everywhere. Fixes mistydemeo/tigerbrew#177.
2013-02-21brew: use a shell wrapper script for brewMike McQuaid
This reverts commit dfd4dd12a41e1697ee9d5feac12cc1ea7c3a590e. Fixes the problems from #17683 and #17685.
2013-02-21brew: move to Library/brew.rbMike McQuaid
This reverts commit ac156b36d00ead5f225389f0a1d8069d0c1cce4a.
2013-02-18Rename Library/Contributions/cmds -> cmd.Mike McQuaid
2013-02-18Rework brew command dispatch order.Mike McQuaid
Make it no longer possible to override e.g. `brew install` with a script if there is already a built-in Homebrew command named `brew install`. References #17673
2013-02-08Revert "brew: move to Library/brew.rb"Mike McQuaid
This reverts commit 67d06b84d00a17cf43770eedf34e37e50e209741. Closes #17683. Closes #17685.
2013-02-08Revert "brew: use a shell wrapper script for brew"Mike McQuaid
This reverts commit 225546a3ee2d3f22e185e47d4db6f6716a56669b.
2013-02-07brew: use a shell wrapper script for brewMike McQuaid
This allows us to force using the system Ruby on OSX but allow the development of Homebrew for Linux or Windows to not rely on OSX paths. Closes #17548.
2013-02-07brew: move to Library/brew.rbMike McQuaid
2012-12-27Replace sceaga/homebrew with mistydemeo/tigerbrewMisty De Meo
@sceaga has discontinued his homebrew fork, so tigerbrew is now PPC/ Tiger users' best bet.
2012-08-31`brew -c1` one line configuration summaryMax Howell
At your option: `brew --config -1`.
2012-08-29If exception has no message raise againMax Howell
Shows full backtrace, which is useful. Now blank "raise" statements are the equivalent of admitting programmer error. The backtrace will be useful.
2012-08-29Make `brew --prefix` very fastMax Howell
Because people use this in .bash_profile etc. We should be as fast as possible.
2012-08-29Much better CTRL-C handlingMax Howell
Let's not show weird error messages when user interrupts during various stages of brew initialization. Tested by doing `for x in $(brew search); do brew install $x; done` and pressing CTRL-C at random short intervals.
2012-08-22brew: downcase arg before sending to HomebrewMisty De Meo
Fixes a case where brew would find commands with wrongly-capitalized user input on case-insensitive systems, then error out with a confusing message when an invalid method was sent to Homebrew. e.g.: > brew Update Error: undefined method `Update' for Homebrew:Module
2012-08-06Don't output Ruby warningsMax Howell
We don't want bug reports about this crap, even though the user REALLY should listen to the warning message. What actually happens is they blame us instead. This kind of warning in particular: warning: Insecure world writable dir /usr/local/bin in PATH
2012-07-23Make --version/--verbose slightly less confusing.Adam Vandenberg
2012-06-01Replace /usr/bin/ruby with full Framework pathMisty De Meo
Rationale: some users insist on replacing the /usr/bin/ruby symlink to point to another ruby on their system, which may break homebrew. Use the full Framework path instead, which is less likely to be tampered with. This also reorganizes the brew --config checks to reflect the different path. Fixes #12009. Closes #12333. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-05-07Unify 'which' and which_s' utility methodsJack Nagel
'which' only returns a Pathname or nil, and doesn't care about anything sent to stderr, so just silence it by default and combine the two methods. Closes #12115. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-29Exit with bad exit code on command failures.Mike McQuaid
2012-03-18Set MACOS_VERSION as 0 on non-OSX platforms.Mike McQuaid
2012-03-18Rename external commands directory from examples.Mike McQuaid
Fixes #10829.
2012-03-07Remove 'is this a git command?'Adam Vandenberg
2012-03-07Move brew output for BuildError into BuildErrorMax Howell
So upgrade can output errors but continue to upgrade the rest of the installation.
2012-03-02Scupper sourceable output if brew install is pipedMax Howell
`brew install > file` should not give "export CC=/foo" output on Build Failures. Also moved the "Using clang" output to brew when BuildError is thrown as that is where it is interesting, and not if you just do `brew --env`.
2011-11-13metadata: Record installation optionsCharlie Sharpsteen
Adds a new class called `Tab` that acts as a recipt for install options. A `Tab` can be serialized to a JSON file for future reference.
2011-10-27brew command: exit with nonzero status for unknown command nameDougal Sutherland
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-08-31Save config.log to ~/Library/Logs/HomebrewMax Howell
Also tidied error output. Still could be tidied quite a lot but I am still considering how best to go about it.
2011-08-17Only error out for `sudo brew install`Max Howell
Note this only happens if Homebrew is *not* installed sudo. Which is most of the time true. Fixes #6899
2011-08-02Rephrase comment so it makes senseMax Howell
2011-07-30If brew is installed non-root refuse to `sudo brew`Max Howell
Rationale: people break their installs by mixing sudo and non-sudo usage. They are used to having to `sudo port install` and shit like that, so I understand why the mixing happens.
2011-03-20use Module#const_get instead of evaleregon
* may be a problem if the constant is scoped (like A::B), but this is not the case (const.split('::').inject(Object) { |c, part| c.const_get part } would solve that) * this was noticed in a comment of 9afc85ad but it has disappeared Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-13`brew` by itself prints help but exits with non-zeroMax Howell
2011-03-13Move the Dir.getwd after helpMax Howell
Because we should always be able to help. And I've checked, it works fine.
2011-03-13brew environment alias to --env; like `gem`Max Howell
2011-03-12Support the `brew instal` typoMax Howell
Because `gem instal` works too.
2011-03-12Some CleanupMax Howell
2011-03-12Refactor the brew command into one file per commandMax Howell
The code was sucking. To the extent that maintenance was hard. It's a lot easier to work with code that is sensibly split at sensible boundaries. So now it is more like that. But the refactor is minimal. Because we don't want you to have more merge hell than absolutely necessary. If you merge you will need to pay attention to brew.h.rb (as it is deleted) and bin/brew (as command logic is gone). It will be painful, but you will just have to help git out by moving any changes around manually. Note compatibility.rb. It ensures that any function renames or removals don't break anything. We're pretty serious about backwards compatibility. And that's because we encourage you to hack around with the innards. And we couldn't do that if we would then just make stuff disappear behind your back.
2010-10-30fix warnings: ambiguous splatJamie Macey
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-30fix warnings: splat is redundant for putsJamie Macey
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-30`brew log` should show complete Git log if no formulae are specifiedMichael Dippery
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-25All vcs strategies support cached_downloadAdam Vandenberg
2010-10-17Add remove --forceAdam Vandenberg
2010-10-17remove - show message when multiple versions existAdam Vandenberg
2010-10-07Consider outdated kegs in brew uses --installedKevin Ballard
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-06Tweak display of missing shaAdam Vandenberg