diff options
| author | Xu Cheng | 2016-06-14 21:01:50 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-06-14 21:22:07 +0800 |
| commit | 79345592a9ede3fffb3e8b8aa1412a95946c7e25 (patch) | |
| tree | e57bbe5c601f497a2a2b43b70cf027d8dd91d871 /Library/Homebrew | |
| parent | 7727c7764c9941bbe78c342dbe5b3c1a57ac5cd6 (diff) | |
| download | brew-79345592a9ede3fffb3e8b8aa1412a95946c7e25.tar.bz2 | |
man: auto detect maintainers list
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/man.rb | 4 | ||||
| -rw-r--r-- | Library/Homebrew/manpages/brew.1.md.erb | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/man.rb b/Library/Homebrew/cmd/man.rb index bc382d29f..e23313be3 100644 --- a/Library/Homebrew/cmd/man.rb +++ b/Library/Homebrew/cmd/man.rb @@ -53,6 +53,10 @@ module Homebrew }. reject { |s| s.strip.empty? } + variables[:maintainers] = (HOMEBREW_REPOSITORY/"README.md"). + read[/Homebrew's current maintainers are (.*)\./, 1]. + scan(/\[([^\]]*)\]/).flatten + ERB.new(template, nil, ">").result(variables.instance_eval{ binding }) end diff --git a/Library/Homebrew/manpages/brew.1.md.erb b/Library/Homebrew/manpages/brew.1.md.erb index f6f594843..f88d4e091 100644 --- a/Library/Homebrew/manpages/brew.1.md.erb +++ b/Library/Homebrew/manpages/brew.1.md.erb @@ -235,7 +235,7 @@ Homebrew Documentation: <https://github.com/Homebrew/brew/blob/master/share/doc/ ## AUTHORS -Homebrew's current maintainers are Misty De Meo, Andrew Janke, Xu Cheng, Mike McQuaid, Baptiste Fontaine, Brett Koonce, Martin Afanasjew, Dominyk Tiller, Tim Smith and Alex Dunn. +Homebrew's current maintainers are <%= maintainers[0...-1].join(", ") %> and <%= maintainers[-1] %>. Former maintainers with significant contributions include Jack Nagel, Adam Vandenberg and Homebrew's creator: Max Howell. |
