Skip to content

Commit

Permalink
draft: hl: added man page installation
Browse files Browse the repository at this point in the history
  • Loading branch information
pamburus committed May 16, 2024
1 parent b544daf commit 6ce1604
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/formula/hl.rb.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class Hl < Formula
def install
bin.install "hl"
generate_completions_from_executable(bin/"hl", "--shell-completions")
(man1/"hl.1").write Utils.safe_popen_read(bin/"hl", "--man-page")
man.install "man1"
end
end
if Hardware::CPU.arm?
Expand All @@ -22,6 +24,8 @@ class Hl < Formula
def install
bin.install "hl"
generate_completions_from_executable(bin/"hl", "--shell-completions")
(man1/"hl.1").write Utils.safe_popen_read(bin/"hl", "--man-page")
man.install "man1"
end
end
end
Expand All @@ -34,6 +38,8 @@ class Hl < Formula
def install
bin.install "hl"
generate_completions_from_executable(bin/"hl", "--shell-completions")
(man1/"hl.1").write Utils.safe_popen_read(bin/"hl", "--man-page")
man.install "man1"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
Expand All @@ -43,6 +49,8 @@ class Hl < Formula
def install
bin.install "hl"
generate_completions_from_executable(bin/"hl", "--shell-completions")
(man1/"hl.1").write Utils.safe_popen_read(bin/"hl", "--man-page")
man.install "man1"
end
end
end
Expand Down

0 comments on commit 6ce1604

Please sign in to comment.