Skip to content
Snippets Groups Projects
Commit 7c7e2d00 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #768 from MikeMcQuaid/cask-man

Make "brew man" also generate Cask's manpage.
parents bb4d168c 665783cb
No related branches found
No related tags found
No related merge requests found
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
!/.github !/.github
!/share/doc/homebrew !/share/doc/homebrew
!/share/man/man1/brew.1 !/share/man/man1/brew.1
!/share/man/man1/brew-cask.1
# Ignore `etc` contents (again) # Ignore `etc` contents (again)
/etc /etc
......
...@@ -47,6 +47,5 @@ end ...@@ -47,6 +47,5 @@ end
desc "Generate man page from Markdown source" desc "Generate man page from Markdown source"
task :man do task :man do
sh "ronn --roff --pipe --organization=Homebrew-Cask --manual=brew-cask " \ sh "brew man"
"doc/man_page/brew-cask.1.md > man/man1/brew-cask.1"
end end
...@@ -37,6 +37,9 @@ module Homebrew ...@@ -37,6 +37,9 @@ module Homebrew
markup = build_man_page markup = build_man_page
convert_man_page(markup, TARGET_DOC_PATH/"brew.1.html") convert_man_page(markup, TARGET_DOC_PATH/"brew.1.html")
convert_man_page(markup, TARGET_MAN_PATH/"brew.1") 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 end
def build_man_page def build_man_page
...@@ -69,7 +72,7 @@ module Homebrew ...@@ -69,7 +72,7 @@ module Homebrew
shared_args = %W[ shared_args = %W[
--pipe --pipe
--organization=Homebrew --organization=Homebrew
--manual=brew --manual=#{target.basename(".1")}
] ]
format_flag, format_desc = target_path_to_format(target) format_flag, format_desc = target_path_to_format(target)
......
.\" generated with Ronn/v0.7.3 .\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3
. .
.TH "BREW\-CASK" "1" "August 2016" "Homebrew-Cask" "brew-cask" .TH "BREW\-CASK" "1" "August 2016" "Homebrew" "brew-cask"
. .
.SH "NAME" .SH "NAME"
\fBbrew\-cask\fR \- a friendly binary installer for macOS \fBbrew\-cask\fR \- a friendly binary installer for macOS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment