From 90bc60853041dc96073e7fffdc1f9e8569cfa8e7 Mon Sep 17 00:00:00 2001 From: MoonFruit Date: Fri, 11 Jan 2019 10:00:17 +0800 Subject: [PATCH] findutils: create symbolic link `man` to `gnuman` --- Formula/findutils.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Formula/findutils.rb b/Formula/findutils.rb index eca2b2e466..920b4f67e4 100644 --- a/Formula/findutils.rb +++ b/Formula/findutils.rb @@ -49,6 +49,8 @@ class Findutils < Formula (libexec/gnupath).install_symlink f => f.basename.sub(/^g/, "") end end + + libexec.install_symlink "gnuman" => "man" end def post_install @@ -60,10 +62,6 @@ class Findutils < Formula If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc like: PATH="#{opt_libexec}/gnubin:$PATH" - - Additionally, you can access their man pages with normal names if you add - the "gnuman" directory to your MANPATH from your bashrc as well: - MANPATH="#{opt_libexec}/gnuman:$MANPATH" EOS end