Rename external commands directory from examples.

Fixes Homebrew/homebrew#10829.
This commit is contained in:
Mike McQuaid 2012-03-18 15:33:21 +13:00
parent d47cf55f68
commit e33937a1e3
19 changed files with 6 additions and 6 deletions

View File

@ -374,7 +374,7 @@ _brew ()
done done
if [[ $i -eq $COMP_CWORD ]]; then if [[ $i -eq $COMP_CWORD ]]; then
local ext=$(\ls $(brew --repository)/Library/Contributions/examples \ local ext=$(\ls $(brew --repository)/Library/Contributions/cmds \
2>/dev/null | sed -e "s/\.rb//g" -e "s/brew-//g") 2>/dev/null | sed -e "s/\.rb//g" -e "s/brew-//g")
__brewcomp " __brewcomp "
--cache --cellar --config --cache --cellar --config

View File

@ -322,10 +322,10 @@ scripts that reside somewhere in the PATH, named `brew-<cmdname>` or
`brew-<cmdname>.rb`, which can be invoked like `brew cmdname`. This allows you `brew-<cmdname>.rb`, which can be invoked like `brew cmdname`. This allows you
to create your own commands without modifying Homebrew's internals. to create your own commands without modifying Homebrew's internals.
A number of (useful, but unsupported) example commands are included and enabled A number of (useful, but unsupported) external commands are included and enabled
by default: by default:
$ ls `brew --repository`/Library/Contributions/examples $ ls `brew --repository`/Library/Contributions/cmds
Documentation for the included external commands as well as instructions for Documentation for the included external commands as well as instructions for
creating your own can be found on the wiki: creating your own can be found on the wiki:

View File

@ -71,7 +71,7 @@ begin
cmd = aliases[cmd] if aliases[cmd] cmd = aliases[cmd] if aliases[cmd]
# Add example external commands to PATH before checking. # Add example external commands to PATH before checking.
ENV['PATH'] += ":#{HOMEBREW_REPOSITORY}/Library/Contributions/examples" ENV['PATH'] += ":#{HOMEBREW_REPOSITORY}/Library/Contributions/cmds"
if system "/usr/bin/which -s brew-#{cmd}" if system "/usr/bin/which -s brew-#{cmd}"
%w[CACHE CELLAR LIBRARY_PATH PREFIX REPOSITORY].each do |e| %w[CACHE CELLAR LIBRARY_PATH PREFIX REPOSITORY].each do |e|
ENV["HOMEBREW_#{e}"] = Object.const_get "HOMEBREW_#{e}" ENV["HOMEBREW_#{e}"] = Object.const_get "HOMEBREW_#{e}"

View File

@ -353,13 +353,13 @@ Print the version number of brew to standard error and exit\.
Homebrew, like \fBgit\fR(1), supports external commands\. These are executable scripts that reside somewhere in the PATH, named \fBbrew\-<cmdname>\fR or \fBbrew\-<cmdname>\.rb\fR, which can be invoked like \fBbrew cmdname\fR\. This allows you to create your own commands without modifying Homebrew\'s internals\. Homebrew, like \fBgit\fR(1), supports external commands\. These are executable scripts that reside somewhere in the PATH, named \fBbrew\-<cmdname>\fR or \fBbrew\-<cmdname>\.rb\fR, which can be invoked like \fBbrew cmdname\fR\. This allows you to create your own commands without modifying Homebrew\'s internals\.
. .
.P .P
A number of (useful, but unsupported) example commands are included and enabled by default: A number of (useful, but unsupported) external commands are included and enabled by default:
. .
.IP "" 4 .IP "" 4
. .
.nf .nf
$ ls `brew \-\-repository`/Library/Contributions/examples $ ls `brew \-\-repository`/Library/Contributions/cmds
. .
.fi .fi
. .