114 Commits

Author SHA1 Message Date
Lee Packham
d5c58f889a Make the regex for URL checking more git friendly
* Urls for Git Commits need to be between 4-40 not 40.

For example:

https://github.com/mxcl/homebrew/commit/805a
https://github.com/mxcl/homebrew/commit/805

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2010-11-21 13:20:12 +00:00
Mike McQuaid
5733fce6fc Don't count --install as a valid brew pull URL.
We were checking that at least one URL argument was added but
the --install parameter was also counted in that.
2010-11-21 10:33:14 +00:00
Mike McQuaid
331a725516 Only try and install using git pull when formula. 2010-11-21 10:32:33 +00:00
Mike McQuaid
7933bd4e65 Add brew pull for easy integration of user patches 2010-11-20 12:02:17 +00:00
Adam Vandenberg
320889933d Separate man page for brew-man
Also, revise main man page, and update brew-man command to handle
multiple input files.
2010-11-06 17:36:44 -07:00
Adam Vandenberg
0ecbabad63 brew-audit - check harder for commented cmake 2010-11-04 08:11:49 -07:00
Adam Vandenberg
d14323b9a0 brew-audit - check for combined make calls 2010-10-30 08:30:40 -07:00
Adam Vandenberg
ee72f25b88 brew-test - make ENV available to tests 2010-10-25 09:31:06 -07:00
Adam Vandenberg
405613a0ef brew-audit - add check for tabs.
Add a new mode "brew audit --warn" that performs stricter checks
that might not need to be fixed.

Currently this includes a check for using tabs instead of spaces
for indentation; Homebrew style is "2-space indentation."

Documented this new switch.
2010-10-21 07:53:37 -07:00
Adam Vandenberg
61156e979f brew-audit - don't complain about --HEAD options 2010-10-12 08:44:03 -07:00
Adam Vandenberg
48cdd7bc87 brew-audit - check for include? --HEAD 2010-10-08 20:12:11 -07:00
Adam Vandenberg
f708b0b81f brew-missing - don't count outdated as missing 2010-10-01 07:12:21 -07:00
Adam Vandenberg
20e2844df7 brew-audit - use preferred debian mirror 2010-09-30 10:43:57 -07:00
Adam Vandenberg
389fdec9d4 brew-fetch - warn if checksums differ 2010-09-17 17:11:27 -07:00
Adam Vandenberg
581d35a087 brew-audit - empty checksums with either type of quote 2010-09-14 16:13:57 -07:00
Adam Vandenberg
12dceba820 brew-audit - check for commented-out dependencies
"brew audit" will now warn about commented-out dependencies.

Updated formulae that had these to either take them out or rewrite
the comments around them.
2010-09-13 15:16:09 -07:00
Adam Vandenberg
b7afc8d8cf brew-audit - check SourceForge urls 2010-09-09 14:16:05 -07:00
Adam Vandenberg
a7e902ce78 brew-audit - yet another path shortcut check 2010-09-08 09:22:48 -07:00
Adam Vandenberg
b98d8366bc brew-audit - check inreplace block var name 2010-09-08 09:07:59 -07:00
Adam Vandenberg
bb3f9c4f3e Fix brew-leaves 2010-09-08 07:48:11 -07:00
Adam Vandenberg
e9043abc57 brew-audit - catch more interpolation style issues 2010-09-07 14:36:51 -07:00
Adam Vandenberg
14353b5491 brew-audit: add check for git and fix warnings 2010-09-07 09:23:29 -07:00
Adam Vandenberg
c905fb79f4 brew audit - Google Code homes w/o trailing slash
Without a trailing slash, you redirect to the URL w/ a slash, so
might as well have it there in the first place.
2010-08-21 12:00:38 -07:00
Adam Vandenberg
1bf407dd35 Tweak brew server - fixes Homebrew/homebrew#2191 2010-08-17 08:28:16 -07:00
Adam Vandenberg
6d36c4daf2 Fix brew server and document. 2010-08-15 19:47:46 -07:00
Adam Vandenberg
c9e2a9e5cb Document 'brew missing'. 2010-08-15 15:25:35 -07:00
Adam Vandenberg
f5b66f2a04 Tweak brew missing 2010-08-15 15:23:43 -07:00
Adam Vandenberg
bdd9e1aeff brew audit - check for FileUtils. 2010-08-15 15:20:56 -07:00
Adam Vandenberg
b877bc52d0 External command "brew missing"
This will print installed brews that are missing deps.
2010-08-15 15:11:09 -07:00
Adam Vandenberg
42129a7a94 brew audit - another man variation 2010-08-15 11:32:45 -07:00
Adam Vandenberg
43a1622609 Add 'brew graph' external command.
This command generates a GraphViz dot file from the Hoembrew
dependency graph.

$ brew install graphviz
$ brew graph | dot -Tsvg -ohomebrew.svg
$ open homebrew.svg
2010-08-13 09:46:17 -07:00
Adam Vandenberg
ff0ea323b5 brew audit - check used and documented options 2010-08-10 13:04:51 -07:00
Adam Vandenberg
b12cc1eb0a brew audit - most audits shouldn't happen against __END__ 2010-08-10 11:52:03 -07:00
Adam Vandenberg
664e2aebd9 brew audit - refactor text checks to make easier to test 2010-08-09 11:59:27 -07:00
Adam Vandenberg
cd50954677 brew audit - flag use of DATA with no __END__ 2010-08-09 09:11:28 -07:00
Adam Vandenberg
91b7000159 brew audit - check for empty md5 2010-08-08 18:25:56 -07:00
Adam Vandenberg
0734fa000d brew audit - more aggressive path shortcut suggestions 2010-08-08 11:22:14 -07:00
Adam Vandenberg
013fe4bf38 Move Pathname.starts_with? into Pathname 2010-08-08 09:13:27 -07:00
Adam Vandenberg
353d9561e7 brew-linkapps - expand the target path once. 2010-08-07 22:39:23 -07:00
Adam Vandenberg
bf8c8dc3f8 Formatting in brew-switch 2010-08-07 18:08:54 -07:00
Adam Vandenberg
b69d6dc4cf Add sha1 to brew fetch and document command 2010-08-07 18:08:53 -07:00
Adam Vandenberg
6612a04917 brew audit - trailing whitespace detection 2010-08-07 18:08:51 -07:00
Adam Vandenberg
bc533d59c8 brew audit - look for aliases in deps 2010-08-07 18:08:50 -07:00
Adam Vandenberg
8a35418887 Fix brew-server 2010-08-07 18:08:50 -07:00
Adam Vandenberg
c55fcc3a29 Fix brew-readall 2010-08-07 18:08:50 -07:00
Adam Vandenberg
bead62a04a Fix brew-audit 2010-08-07 18:08:50 -07:00
Adam Vandenberg
bd51ae3343 Add depends_on spacing checks to brew_audit 2010-07-23 21:31:32 -07:00
Adam Vandenberg
2bac03ef92 Use regex in brew-audit and add path concat test. 2010-07-12 10:38:06 -07:00
Adam Vandenberg
6b1a8be58e External command "brew which"
A work-in-progress command, "brew which" will show which versions of formulae
you have installed based on what symlinks exist from HOMEBREW_PREFIX back into
the Cellar.

Thus, if you happen to have symlinks into two different versions of a brew in
the Cellar (typically an error), both of those versions will be listed.

This is a diagnostic command, but some of this code will be the basis for
possible future better handling of multiple-versions-at-once.
2010-07-08 22:41:51 -07:00
Adam Vandenberg
c2c0f681f5 brew fetch shouldn't try to checksum VCS checkouts
Fixes Homebrew/homebrew#1802
2010-07-07 21:31:55 -07:00