aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
AgeCommit message (Collapse)Author
2012-08-29`brew sh`: a shell with superenv loadedMax Howell
If you need to build software on OS X by hand, a brew shell is the way to do it. Closes Homebrew/homebrew#14381.
2012-08-29Doctor suggest `git clean -f` if unstaged filesMax Howell
This is safe, I tested various scenarios, including Homebrew installed in ~. The only files that are removed are unexpected files in Homebrew's already managed directories.
2012-08-29Always find git and svn without trying hardMax Howell
Two wrapper scripts that find git and svn using the ENV variables we support and then searching through the PATH and looking inside Xcode.app if necessary. Now just calling git or svn in Homebrew code will find and exec the right tool and we can stop fussing. Apologies to @adamv who is probably unimpressed that the cmds directory has non-commands in it now. If it's consolation these are temporary pending some more work on superenv whereby some more directories are created under the superenv root.
2012-08-29Allow eg. `brew --env libxml2`Max Howell
Example useful usage: eval $(brew --env gettext) && clang -Wl,-t -lssl 2>/dev/null
2012-08-29superenv: build-environments that just workMax Howell
1. A minimal build environment, we don't set CFLAGS, CPPFLAGS, LDFLAGS, etc. the rationale being, the less that is set, the less variables we are introducing that can break builds. 2. A set of scripts that replace cc, ld, etc. and inject the -I, -L, etc. flags we need into the args passed to the build-tools. Because we now have complete control over compiler instantiations we do a variety of clean-up tasks, like removing bad flags, enforcing universal builds and ensuring makefiles don't try to change the order of library and include paths from ones that work to ones that don't. The previous ENV-system is still available when --env=std is specified. superenv applies to Xcode >= 4.3 only currently.
2012-08-29Figure out if we can cleanup keg-only kegsMax Howell
2012-08-29Create active symlinks for installed formulaMax Howell
Similar to the LinkedKegs record, we write a symlink for installed kegs to PREFIX/opt. Unlike the linked-keg record, unlinking doesn't remove the link, only uninstalling, and keg-only formula have a record too. The reason for this addition is so that formula that depend on keg-only formula can build against the opt directory and not the cellar keg. Thus surviving upgrades. To enforce this fix_install_names and built were adapted to use the opt path. Standard kegs also create an opt symlink so that caveats can now refer to the opt directory and thus provide steps that survive upgrades too. Thus the choice of /opt. It is short, neat and the right choice: POSIX dictates that opt is for stand-alone prefixes of software.
2012-08-28Refactor brew listAdam Vandenberg
2012-08-28brew list: check for CellarAdam Vandenberg
If the Cellar doesn't exist yet, don't print an error message or exit with an error status. Fixes Homebrew/homebrew#14503.
2012-08-27audit: Formula#deps returns Dependency objectsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-27audit: fix redundant version checkJack Nagel
The == comparison was comparing the versions rather than directly comparing the strings, which lead to false positives. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-26create: allow --set-name and --set-versionAdam Vandenberg
Closes Homebrew/homebrew#10873. Closes Homebrew/homebrew#14401. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-25Miscellaneous bottle code cleanup.Mike McQuaid
2012-08-25Rename tab 'built_bottle' to 'build_as_bottle'.Mike McQuaid
2012-08-25audit checks for passing dashes to build.include?Adam Vandenberg
2012-08-22audit: be a bit more lenientAdam Vandenberg
2012-08-22audit: allow certain ARGV usagesAdam Vandenberg
2012-08-22audit: complain until we use option and buildAdam Vandenberg
2012-08-21`brew irb` uses correct RubyMax Howell
Conversation here: 0a45d96b21a5056e5131f136e94533a6a57bf808
2012-08-21Formula.EnumerableMax Howell
Deprecated Formula.all, replaced usage with more appropriate enumerable options. Just check out how much nicer `brew audit` runs now.
2012-08-21In fact, there are 2 xcode-select files to deleteMax Howell
2012-08-20Simplify build options APIJack Nagel
Simplify access to the different forms of a formula's build options by making options into real objects rather than strings, and expose both the 'name' and 'flag' form.
2012-08-18Don't lie about upgrading up-to-date formulaeJack Nagel
Usually, the "foo-version already installed" error is printed by FormulaInstaller. However, if an up-to-date formula that has outdated deps is passed on the command line, we proceed to upgrade the deps and then print a message saying that the formulae given on the command line is already installed. Catch this earlier, when the outdated list is being populated, print an appropriate message, and skip the up-to-date formula. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18upgrade: filter ARGV when expanding depsJack Nagel
This serves the same purpose as similar code in FormulaInstaller, but we duplicate it because we do the dependency expansion in an ad-hoc fashion here. Fixes Homebrew/homebrew#11863. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18Add ARGV.ignore_deps?Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18Refactor `brew missing`Jack Nagel
The heuristic for determining whether something is installed changes from "f.installed?" to "f.rack.exist? and f.rack.subdirs.length > 0" in order to properly consider outdated formulae. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18Deprecate MacOS.version? style methodsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18outdated: use new version comparison machineryJack Nagel
2012-08-18Add Version#detected_from_url?Jack Nagel
2012-08-18Replace version strings with Version objectsJack Nagel
2012-08-17Remove executable bits from audit.rb and bottle.rbJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17Stop warning about CLT w/o XcodeMax Howell
Also made the latest_versions checks smarter. Hopefully correct too.
2012-08-14--config: remove confusing XQuartz annotationJack Nagel
Apple's X11 is XQuartz, but this can be confusing, and is ultimately unnecessary for debugging purposes. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-14Improve libiconv diagnostic and suggestionMax Howell
This is coming up a lot at the moment, so here is an attempt to be more helpful.
2012-08-14`brew doctor -D` (diagnostic-dump)Max Howell
-D is now the switch for diagnostic-dumps. Let it be so. Shows how long each doctor method takes in a sorted table at end. I used this to move the two slowest methods to the end of the doctor run so that as much useful information can be shown as quickly as possible. Also now possible to specify on command line which tests should be run.
2012-08-14`brew irb` fixMax Howell
Broke when I removed `require 'formula'` from ARGV.rb.
2012-08-13options: Print "--" in option name for --compactMisty De Meo
This was a regression which caused the bash completion script to fail to complete formula options.
2012-08-13brew cleanup removes .DS_Store filesMax Howell
Probably slow, but we hate these fuckers.
2012-08-12Add :when_xquartz_installed as a keg-only reasonJack Nagel
Using :when_xquartz_installed will tell the keg-only machinery to activate if XQuartz is installed. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-12Refactor `brew audit`Jack Nagel
2012-08-12Make Set available globallyJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-11Fix normalization of old- and new-style optionsMisty De Meo
When combining the set of old-style and new-style options, make sure that the leading "--" is stripped. Fixes displaying options in `brew options`, and the exotic case of declaring options using the old syntax and then checking them with `build.include?`
2012-08-11options: Don't add "--" to options that have itMisty De Meo
2012-08-11options: fix missing leading "--" in outputJack Nagel
Closes Homebrew/homebrew#14124. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-10remove trailing whitespaceAdam Vandenberg
2012-08-10Be more verbose when users insist on being sudoersMax Howell
If you google for "Cowardly refusing to sudo brew" you get a lot of confused users who didn't read any of the Homebrew documentation and then had a hissy-fit.
2012-08-09create: Fix indentation for :x11 depMisty De Meo
2012-08-09Remove options audit checkAdam Vandenberg
2012-08-09Fix info/options for new options dslAdam Vandenberg
2012-08-09Run each search_tap in a separate thread to speed things up.hazz
Closes Homebrew/homebrew#14066. Signed-off-by: Max Howell <mxcl@me.com>