aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2016-08-20 16:36:34 +0100
committerMike McQuaid2016-08-20 16:36:34 +0100
commit665783cba487a9e9bc772176ebb62761671f7095 (patch)
tree2c65ac0aa9787f8054ff8a7f6e071f1304084365 /Library/Homebrew/cmd
parent721b218fd2eb6b4cced4ee09e8a02c725cb77754 (diff)
downloadbrew-665783cba487a9e9bc772176ebb62761671f7095.tar.bz2
Make "brew man" also generate Cask's manpage.
Also, check in this manpage, adjust the Rakefile and remove the old one. Fixes #731.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/man.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/man.rb b/Library/Homebrew/cmd/man.rb
index d704d46a1..536b27984 100644
--- a/Library/Homebrew/cmd/man.rb
+++ b/Library/Homebrew/cmd/man.rb
@@ -37,6 +37,9 @@ module Homebrew
markup = build_man_page
convert_man_page(markup, TARGET_DOC_PATH/"brew.1.html")
convert_man_page(markup, TARGET_MAN_PATH/"brew.1")
+
+ cask_markup = (HOMEBREW_LIBRARY/"Homebrew/cask/doc/man_page/brew-cask.1.md").read
+ convert_man_page(cask_markup, TARGET_MAN_PATH/"brew-cask.1")
end
def build_man_page
@@ -69,7 +72,7 @@ module Homebrew
shared_args = %W[
--pipe
--organization=Homebrew
- --manual=brew
+ --manual=#{target.basename(".1")}
]
format_flag, format_desc = target_path_to_format(target)