Commit Graph
316 Commits
Author SHA1 Message Date
Mike McQuaid e39cfa3e29 brew-test-bot: add skip cleanup, setup options. 2012-11-10 06:18:34 +00:00
Misty De Meo f52ebe5fc7 brew ln --force is now brew ln --overwrite
* Renames --force to --overwrite, freeing up brew ln --force for #13349
* Changes --dry-run to preview linking by default, rather than
  overwriting. An overwrite dry-run can be simulated via both
  --dry-run --overwrite
* Adds some basic Keg tests
2012-10-20 21:00:46 -05:00
Adam Vandenberg 240deab361 Sanity check 2012-10-19 18:56:18 -07:00
Jack Nagel 7ca31d57a1 brew-unpack: don't attempt to mv the build directory
When the current working directory is the root of the build tree, copy
it instead of moving it, otherwise an exception will be raised when we
try to clean up the build tree later.

Noticed when unpacking the vim source tree from a mercurial checkout.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-16 00:56:55 -05:00
Max Howell d53596f41e Always unpack the source tarball, not the bottle 2012-09-23 20:38:16 -04:00
Max Howell 80d6be3303 brew unpack: support -gpf
-g sets up git repo. -f forces even if already there. I found these useful.
2012-09-23 18:31:10 -04:00
Christian Höltje e1a68f1ffb Prevent linkapps from creating duplicate aliases
`brew linkapps` was creating `MacVim` on the first run, then
`MacVim alias` on the second run.

Closes #14955.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-15 12:56:18 -07:00
Ori Peleg bf2e6023d1 linkapp: create Finder aliases
Symlinks to apps don't play well with Spotlight, but Finder alises do,
so let's create them instead.

Closes #14821.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-09 13:00:21 -07:00
Jack Nagel 296f7f4d8d brew-aspell-dictionaries: handle mirrors
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-03 23:13:43 -05:00
Alexis Hildebrandt ac2b4a1a13 brew-aspell-dictionaries - generate aspell formulae
This script fetches the current list of aspell dictionaries from
the gnu server and generates formulae that can then be
included into the aspell formula.
This makes updating current dictionaries and adding new ones easier.

Tweaked by Mike to generate SHA1s instead of MD5s.

Closes #12180.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-09-03 19:02:30 -07:00
Mike McQuaid 6aab036178 Add script to convert formulae from MD5 to SHA1. 2012-09-03 11:20:07 -07:00
Mike McQuaid 2e5a38c8b4 brew-test-bot: Only run brew-test if test defined. 2012-09-03 00:31:34 -07:00
Max Howell 025e84d548 Always find git and svn without trying hard
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-29 12:41:36 -04:00
Mike McQuaid 246530cc4f brew-test-bot: add missing 'formula' require. 2012-08-25 13:46:16 -07:00
Adam Vandenberg add682df72 Honor GIT env var 2012-08-22 09:43:30 -07:00
Max Howell a9e43d65a1 Formula.Enumerable
Deprecated Formula.all, replaced usage with more appropriate enumerable options. Just check out how much nicer `brew audit` runs now.
2012-08-21 12:09:05 -04:00
Jack Nagel 41994f9423 brew-mirror-check: update for new specs API
This was missed as part of the specs refactor.

Fixes #14280.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18 12:05:18 -05:00
Max Howell cac059e185 Forgot to remove install_homebrew.rb
It's now in the go branch.
2012-08-17 17:10:59 -04:00
Misty De Meo 0cf17ad43e fish completion: Remove dupe lines, fix commands 2012-08-09 10:57:27 -05:00
Max Howell ea9c52bbe4 Document brew tap --repair 2012-08-07 14:24:09 -04:00
Brandon Black 8aa4f9dd3b Fix issues with writable? detection in brew doctor
Closes #13689.

Signed-off-by: Max Howell <mxcl@me.com>

There are subtle distinctions between writable? and writable_real? we don't
understand precisely why we need this, but it fixes the bugs :/
2012-08-06 22:02:38 -04:00
Misty De Meo 29b2eb06fc Revamp fish completion
The fish completion hadn't been updated since 2009; this brings it up
to date. Changes include:

* Create the list of commands the same way as in bash completion
* Add every option for every current command, with descriptions
* Fixes a bug in fish_complete_brew_command
* Allow fish_complete_brew_command to take multiple commands
* Expand functionality of fish_complete_homebrew_formula to support
  other commands and taps, and change name to reflect new functionality

Tested on fishfish, but should be compatible with fish.
2012-07-25 21:38:45 -05:00
Adam Vandenberg 7e03409233 Make --version/--verbose slightly less confusing. 2012-07-23 14:27:50 -07:00
Misty De Meo 5047c85ced brew-test-bot: move html and css into subdirectory
Also updates the bash-completion to ignore subdirectories, rather than
specific filename patterns.
2012-07-18 08:25:07 -05:00
Misty De Meo 30f93e2690 bash-completion: hide brew-bot support files
Hides files with the extensions ".css" and ".erb" to ensure that the
brew-bot's support files don't show up in tab-completion.
2012-07-17 23:29:28 -05:00
Jack Nagel 2af120b2bd Restore completion for "link" and "ln"
Commit 3b5d7939d9 added completion for
`brew link` options, but disabled completion of the actual command
itself.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-12 02:41:12 -05:00
Adam Vandenberg 3b5d7939d9 Add completions for brew link 2012-07-11 20:08:09 -07:00
Misty De Meo bf051054b6 link: add --force and --dry-run options
`brew link` can now be made to delete any conflicting files using
the --force argument. It also has a --dry-run option, similar to
git clean -n, which will list any files which would be deleted
without touching the filesystem.

Closes #11811.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-07-09 12:01:09 -05:00
Jack Nagel 58bdd43c41 Completion for "brew missing"
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-13 08:14:25 -05:00
Adam Vandenberg cfe642bfd4 Fix doctor's use of missing.
`brew doctor` shelled to `brew missing` and parsed the results.
When VERBOSE was true, this caused an error as extra, unexpected
output is generated.

Make missing an internal command, and give it a programmatic interface.
2012-06-12 20:03:26 -07:00
Jack Nagel b7b027855d Use "legacy" search API when completing tap names
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-12 11:58:48 -05:00
Ranmocy a4703a7df5 brew-linkapps: note where symlinks are installed
Closes #12619.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-07 16:06:55 -05:00
Misty De Meo d727f8b7f3 Replace /usr/bin/ruby with full Framework path
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-06-01 09:24:25 -05:00
lukas 6f7e663cc6 Add brew services command: a wrapper for launchctl
If a formula implements startup_plist it has out-of-the-box support by
brew services. If not it's possible to specify the path to a plist file:
`brew services couchdb-lucence /usr/local/Cellar/..../couchdb-lucene.plist`.

Fixes #3422.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-05-01 20:32:21 +08:00
Mike McQuaid 34c970b103 Add ofail command and fix bottle command output. 2012-04-30 21:38:08 +08:00
Mike McQuaid 0beb7abfbc Add Brew Test Bot for comprehensive testing.
Closes #11642.
2012-04-24 19:00:08 +10:00
Jack Nagel 98f254a41c tests: replace tests script with rake-based runner
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-16 23:08:32 -05:00
Jack Nagel f94346789d brew-leaves: fix for recent deps overhaul
Fixes #11567.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-11 14:00:17 -05:00
Misty De Meo 3bbf7bd6a0 brew-pull: Fix detecting issue #
Fixes a regression introduced in c27a575eb6
This is why I wish 1.8.x had named captures.
2012-04-11 10:22:11 -05:00
Misty De Meo c27a575eb6 brew-pull: add support for pulling from taps 2012-04-06 09:53:01 -05:00
Jack Nagel ffb9aa5413 Remove "__brew_ps1" function from completion
This was probably silly and I'm probably the only person that ever used
it. I still do, actually, but it's not really a completion function,
it's simple enough to just stick in a shell startup script, and removing
it makes the completion script usable under the new dynamic loading
scheme provided by bash-completion 1.99+.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-29 20:11:00 -05:00
Mike McQuaid 667ced2614 Add brew tests command to run all unit tests. 2012-03-29 18:40:32 +11:00
Mike McQuaid 997808fcb4 Cleanup brew-pull code. 2012-03-29 18:30:38 +11:00
Jack Nagel be77491c7c Document how formula arguments can be specified
Closes #11037.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-25 16:21:13 -05:00
Jack Nagel 37e8c5cfb7 Tab completion for brew tap
Using an inline Ruby script we can hit the GitHub API and look for
repositories that match the tap naming scheme. The results are cached
for the duration of the current shell session, so going over the network
is a once-per-shell-session cost.

There are a few false positives, but not much we can do about that at
this point, as taps do not have to be in the fork network of any
specific repository.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-23 22:42:43 -05:00
Max Howell 37a3f7ce4f Tell the user to run doctor after installing 2012-03-19 13:14:23 +00:00
Jack Nagel a3afabaa48 Document brew tap and brew untap
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-18 16:04:05 -05:00
Jack Nagel 3d97bcda63 Clarify install --force
Since 5bddaf2e ("Stop supportinb `brew install --force`), the --force
argument is still useful but only to overcome the blacklist
restrictions. Document this.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-18 16:04:04 -05:00
Mike McQuaid 9c16145d8c Set MACOS_VERSION as 0 on non-OSX platforms. 2012-03-18 15:43:39 +13:00
Mike McQuaid b27b761931 Rename external commands directory from examples.
Fixes #10829.
2012-03-18 15:34:41 +13:00