24630 Commits

Author SHA1 Message Date
Adam Vandenberg
77ae1821b5 Tweak usage for brew switch 2010-06-16 09:44:29 -07:00
Adam Vandenberg
ecfc8a8c11 External command: brew switch formula version
This external command allows you to switch between installed versions of
a formula. If you have multiple versions of a formula in your cellar, the
standard "brew link" command will refuse to run.

This new command "brew switch" tries to unlink all versions of the brew
from the prefix, then links the specific requested version.
2010-06-16 09:42:06 -07:00
Max Howell
9c515e10ca You can't pipe to Ruby and still get STDIN 2010-06-16 08:50:24 +01:00
Adam Vandenberg
5e7ac88265 brew fetch --force to force redownload of tarballs
External command "brew fetch" now allows -f|--force to remove an
existing cached file before downloading.
2010-06-15 21:52:11 -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
6fd0a120f1 External: 'brew fetch' downloads tarballs to cache. 2010-06-15 12:38:04 -07:00
Adam Vandenberg
8af39f115c Set HOMEBREW_DEBUG_INSTALL when in a shell during install -d|-i
When an "install -d formula" fails, and the user gets dropped into an
interactive shell, set the HOMEBREW_DEBUG_INSTALL env var to the name
for the formula that failed. Also set variable if the user requests an
interactive install in the first place.

Note that this may be different than the formula being installed, since
it may have been a dep that failed.

Also remove todo in utils; users can now look for HOMEBREW_DEBUG_INSTALL
in their prompt command, and adjust their prompts accordingly.
2010-06-15 08:09:58 -07:00
Max Howell
a8f29fb102 More readable way to run the install script
Plus more reassuring preamble.
2010-06-15 11:52:58 +01:00
Christopher Sexton
c1f5d73a77 Man page for Homebrew
Includes: generator script, ronn source, manpage output

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

Man page updates.

* Generator command is now an external command with additional options
* Added more brew commands
* Tweaks and reformats
2010-06-13 21:46:24 -07:00
Adam Vandenberg
eb058c0958 Fix: attr doesn't take a list. 2010-06-10 19:39:15 -07:00
Adam Vandenberg
5462ec27b8 Added check for stray 'config' scripts in $PATH.
If the user has, for instance, a non-system "xml2-config" in the path
ahead of the system and Homebrew folders, ./configure scripts which
look for and use this config script will get confused.
2010-06-10 16:25:59 -07:00
Adam Vandenberg
1761ba66bf Failures during ./configure should mention config.log. 2010-06-10 12:57:51 -07:00
Tuncer Ayaz
914a068dc8 MercurialDownloadStrategy: pull and update instead of update only 2010-06-10 12:57:20 -07:00
Tuncer Ayaz
ced8edacdc MercurialDownloadStrategy: pull and update instead of update only 2010-06-10 12:30:47 -07:00
Adam Vandenberg
22ec3c76a8 Add some dash-commands to bash completion script 2010-06-09 22:01:13 -07:00
Adam Vandenberg
870ba9fa4b External command: brew linkapps
This command looks for Cocoa Applications (.app bundles) in the prefix
of all installed formulae. If any are found, they are linked into
"~/Applications", the system-defined location for per-user apps.
2010-06-09 13:53:50 -07:00
Adam Vandenberg
9f9219a142 Subversion now supports revisions on externals.
A formula using svn can now provide a spec:
    :revisions => {...revision numbers...}
that contains a mapping of revision numbers to use
for externals.

The name of the external is keyed to the revision to
use for that external.

The symbol :trunk should be used to specify the reivsion
of the main repo.

An example from the Ffmpeg formula:
    head 'svn://svn.ffmpeg.org/ffmpeg/trunk',
        :revisions => { :trunk => 22916, 'libswscale' => 31045 }

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-08 12:36:03 -07:00
Fergal Hainey
9f2fc2ab3b More efficient SVN download that handles externals
Now makes use of `svn up` to make cache act like
a cache. Externals without a revision specified
are now checked out at HEAD, whereas before they
were ignored. Escaping arguments to backticks.
Making sure main repo is checked out before the
externals.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-08 12:35:31 -07:00
Adam Vandenberg
89717c9d90 Add sample external commands: dirty, leaves, options
See:

* http://github.com/mxcl/homebrew/issues/issue/1359
* http://github.com/mxcl/homebrew/issues/issue/1438
2010-06-07 21:43:20 -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
d9dd462309 Remove 'generate' from bash completion. 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
f08431b5a1 Add --cache support to hg and bzr. 2010-06-07 14:15:45 -07:00
Adam Vandenberg
eb30a8555b Add cache location support to CVS.
This allows formulaes which use CVS to support:
  brew --cache [formula]
2010-06-07 10:01:15 -07:00
Adam Vandenberg
ff9c50151d Fix typo in comment. 2010-06-03 09:55:08 -07:00
Adam Vandenberg
11449bfd67 Split patching message into downloading and patching 2010-06-01 20:49:10 -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
48c7e2fb0b Don't symlink lib/python2.6
Like pkgconfig, perl5 & php, we don't want any one formula to "own" the
lib/python2.6 path.

Fixes Homebrew/homebrew#1218.
2010-06-01 18:09:44 -07:00
Adam Vandenberg
4777d6b4cf Warn if a keg-level "man" is found.
Homebrew expects manpages to be linked in shared/man/...
and not man/...
2010-06-01 16:25:35 -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
b0bc592e17 Tweak the bash completion script.
* Add --config
* Alphabetize various lists
* Remove some local temp variables
2010-05-30 13:00:51 -07:00
Adam Vandenberg
cc34c0c392 Remove selflink script.
Between the quick-install steps and other instructions on the Wiki,
this "self-link" script is no longer needed (and no longer recommended.)
2010-05-28 12:39:39 -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
David Porter
4da905b7fb Fix the update tests
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-05-12 09:20:15 -07:00
Adam Vandenberg
5f4871ba9d Improve archs_for_command
* Work on commands or dylibs
* Use an extension for the list of arches
2010-05-10 20:40:16 -07:00
Adam Vandenberg
2563b32bb6 Allow SVN to report cache location. 2010-05-07 10:38:48 -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
38d969ea7c Let GitDownloadStrategy report its cache location. 2010-05-05 21:20:11 -07:00
Adam Vandenberg
48a5f6ca79 Merge keg_only? blocks in installer. 2010-05-02 18:12:48 -07:00
Adam Vandenberg
639ea39d9c Tweak formatting in previous commit. 2010-05-02 16:53:26 -07:00
Yarrow
305fca250e Show digest mismatch in verify_download_integrity
Report "Expected <supplied digest>, got <file's digest>"
when verify_download_integrity sees a mismatch.  (It had
been, confusingly, reporting "Expected <file's digest>".)

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-05-02 15:49:50 -07:00
Adam Vandenberg
5fe0b108ad Add check for gettext to brew_doctor.
If the user has linked the keg-only gettext, then a large number
of formulae which don't have "depends_on 'gettext'" will pick it
up anyway. Knowing this about the user's setup may help diagnose
bug reports.
2010-05-01 10:50:14 -07:00
Adam Vandenberg
5ea2248085 Update gcc version checks in brew_doctor
brew_doctor's gcc version checks wasn't taking into account the case
where the user doesn't have one or both of GCC 4.0.x and 4.2.x installed.
2010-05-01 09:02:18 -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
listrophy
d7f19e7afb Add 'Arrandale' for core i7 MBP
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-04-29 11:51:05 -07:00
Daniel Schauenberg
27f25315ec sort brew commands in zsh completion and add doctor
Signed-off-by: David Höppner <0xffea@gmail.com>
2010-04-28 23:15:54 +02:00