ed: create symbolic link man to gnuman

This commit is contained in:
MoonFruit 2019-01-11 09:59:44 +08:00 committed by FX Coudert
parent 4d33c5ee6d
commit 9be7800892

View file

@ -23,6 +23,8 @@ class Ed < Formula
(libexec/"gnubin").install_symlink bin/"g#{prog}" => prog
(libexec/"gnuman/man1").install_symlink man1/"g#{prog}.1" => "#{prog}.1"
end
libexec.install_symlink "gnuman" => "man"
end
def caveats; <<~EOS
@ -30,10 +32,6 @@ class Ed < 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