aboutsummaryrefslogtreecommitdiffstats
path: root/bin
AgeCommit message (Collapse)Author
2009-11-11Include macports or fink info with brew --configMax Howell
2009-11-11Include HEAD SHA with brew --configMax Howell
2009-11-09My idea of tidy, sorry Adam…Max Howell
2009-11-09DRY gcc_build and llvm_buildMax Howell
2009-11-09Add OS X, Ruby, compiler & hardware info to --configAdam Vandenberg
2009-11-08Don't error out before Cellar is createdMax Howell
We need a test for this.
2009-11-08Warn users about Xcode versions that are too oldMax Howell
Closes Homebrew/homebrew#116
2009-11-08Simplify the library path determination code a littleMax Howell
2009-11-08Set ENV[HOMEBREW_BREW_FILE]Max Howell
Thus install.rb gets the path to the instantiating brew process rather than whichever is first in the PATH. Not to mention Homebrew doesn't *have* to be in the PATH.
2009-11-08Rename BREW_FILE HOMEBREW_BREW_FILEMax Howell
Because it's a global.h constant and that file can be included by other projects.
2009-11-08Ensure BREW_FILE is an absolute pathMax Howell
It's a constant and Dir.getwd can change.
2009-11-07Propagate exit status in ExecutioError exceptionMax Howell
2009-11-07brew edit works if the file in question won't parseMax Howell
2009-11-07Provide system info for build errorsMax Howell
2009-11-07Don't require hardware.rb globallyMax Howell
2009-11-07Fixed SIGINT handling, so we can have our newlineMax Howell
We trap the INT in the install process now so the newline race condition is avoided. Much neater and more polished now.
2009-11-07Better error for unknown brew commandsMax Howell
2009-11-07Use HOMEBREW_REPOSITORY for brew logMax Howell
2009-11-07Better errors if missing keg or formula argumentsMax Howell
2009-11-07Don't throw if named.empty?Max Howell
Generally this isn't desired or useful.
2009-11-07brew install improvementsMax Howell
Couldn't make this atomic, apologies. Fixes a few things, like deps failing to build not aborting the install. --force now works properly again. Overall more robust code. I went back over it all and gave it a lot of thought. Cleaner separation of logic. Less code in brew, now the only code there is ARGV handling, and basic sanity checks. Not extending ARGV or ENV in global now as that would propagate to other tools or utilities you may write.
2009-11-04More useful Macports/Fink detection functionMax Howell
2009-11-04Faster uninstallMax Howell
Only unlink the keg, don't prune. That's enough, we shouldn't do general maintenance anyway.
2009-11-04Rewrite of HOMEBREW_ folder locationsAdam Vandenberg
This rewrite attempts to sort out where the Prefix, Cellar, and Repository are relative to the real and symlinked 'brew' command. Also included is a --config option which dumps all of these variables. Any top-level script must define a "BREW_FILE" that gives the path to brew as it exists in the path. 'brew' itself just uses __FILE__ and install.rb does a `which brew` (there may be a better way?) The Prefix is always relative to the location of brew as it exists in the path. Thus, whether or not /usr/local/bin/brew is a symlink or real file, the Prefix is always /usr/local. If you have brew in some other prefix, such as /nonstandard/bin/brew, then '/nonstandard/ will be managed by brew instead. The Repository, Cellar, and "Library/Homebrew" required code is always found relative to the "real" path or brew. If brew is a real file in /usr/local/bin/brew, then everything else will be found in /usr/local and we'll expect a /usr/local/.git Otherwise, we dereference brew's symlink and look for everything else relative to that path instead.
2009-10-24Marshal install.rb exceptions back to the parent processMax Howell
Using an error pipe. The use of ENV[HOMEBREW_ERROR_PIPE] feels wrong, but I wasn't sure how else to proxy the file descriptor to the child process since the fork immediately calls exec.
2009-10-23Don't look broken if CWD doesn't existMax Howell
Ruby throws if CWD doesn't exist, even when you aren't doing anything related to the CWD. Sucks. So at least show the user a friendly error message rather than looking broken.
2009-10-15Remove check for gccMax Howell
Since plenty of formula don't require it, I don't want to insist on gcc being installed. A better check is if gcc is required then check for version 4.2, which is all we support. However I can't easily do that. So I'm risking bug reports from people who didn't read the installation instructions and didn't install the right Xcode. But they deserver derision :P
2009-10-15Only create named argumentsMax Howell
2009-10-15Handle certain ARGV parameters before certain error checksMax Howell
2009-10-15Some subdirs and renames to aid homebrew n00bsMax Howell
The classes better reflect their contents. I'm sure this change may be contentious, but I am a sucker for trying to create source bases that are easy to get to grips with and easy to navigate. brewkit.rb is now a deprecated file.
2009-10-15Move verbose ARGV display to install.rbMax Howell
This works better as it comes after any keg-only deps change ENV, but also it needs to happen after brewkit is required and that only happens in install now.
2009-10-15s/require 'brewkit'/require 'formula'/gMax Howell
brewkit.rb changes ENV destructively, so lets not do that everytime a formula is required. Now it's possible for other tools to require a formula description without worrying about side-effects.
2009-10-09Don't allow interactive installs if deps aren't installedMax Howell
Mainly because this feature is for devs and the code is too messy to fix it properly yet.
2009-10-04Use full path to Ruby executable when installingMax Howell
2009-10-04Fixes Homebrew/homebrew#78Max Howell
`brew list` fails after fresh install because Cellar directory doesn't exist yet.
2009-10-03Fix brew if it's symlinked from elsewhereMark Imbriaco
Follow symlinks when trying to find HOMEBREW_RUBYLIB. Signed-off-by: Max Howell <max@methylblue.com> This is now supported usage, it wasn't before. I amended the patch quite heavily because it broke our other supported usage, ie. complete symlinking of Homebrew into /usr/local
2009-09-30brew list --unbrewed fixMax Howell
Determine all directories that aren't Homebrew ones. Exec find. I prefer to keep short stuff in bin/brew so people reading the code have a better idea of what happens, and what sort of functions are useful for the sorts of things we do with Homebrew.
2009-09-29Search by substring unless term is inside /../Andre Arko
2009-09-29Adding PATH for the debug environment.Kieran Pilkington
2009-09-29brew list --unbrewedKieran Pilkington
Very quick way to find files not installed by homebrew. Taken from a command by mxcl on the homebrew wiki. .DS_Store files and bin/brew are ignored.
2009-09-29We require Xcode 3.1 *and later*Adam Vandenberg
2009-09-28Show information messages after basic error checking.Max Howell
2009-09-28fix_PATH changed to warn_about_macports_or_finkMax Howell
We shouldn't mess with the user's PATH anyway. So assume our users are smart and just warn them about potential issues instead.
2009-09-28Only show the first 8 characters of the commit hashes.Eloy Duran
2009-09-25Use MACOS_VERSION in bin/brewMax Howell
2009-09-25Don't summarize brew list if piped to another commandMax Howell
2009-09-25Axel formulaChristian Mayer
Axel tries to accelerate downloads by using multiple connections (possibly to multiple servers) for one download. Because of its size, it might be very useful on bootdisks or other small systems as a wget replacement.
2009-09-25Add full version and build numbers to user agentPiotr Usewicz
Signed-off-by: Max Howell <max@methylblue.com> I adapted it slightly based on the user agent that Safari gives.
2009-09-24Summarised listings with brew listMax Howell
I'm trying to only show the interesting stuff. You can see a full listing with brew -v list, or by piping to other commands. Tell me if you hate it or love it.
2009-09-24brew log commandMax Howell
Shows the git-log for that formula.