Pass the `--no-pager` flag to git when grabbing a diff summary for a patch as
there is no good reason to invoke a pager for ~2-10 lines that the user must
then exit manually.
Fixes errors like:
```
$ brew services restart mysql
Error: Formula `mysql` not installed, #startup_plist not implemented or
no plist file found
```
ClosesHomebrew/homebrew#16378.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
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>
`brew linkapps` was creating `MacVim` on the first run, then
`MacVim alias` on the second run.
ClosesHomebrew/homebrew#14955.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Symlinks to apps don't play well with Spotlight, but Finder alises do,
so let's create them instead.
ClosesHomebrew/homebrew#14821.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
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.
ClosesHomebrew/homebrew#12180.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
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.
ClosesHomebrew/homebrew#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 :/
`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.
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.
FixesHomebrew/homebrew#12009.
ClosesHomebrew/homebrew#12333.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
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`.
FixesHomebrew/homebrew#3422.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>