Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Create symbolic link man to gnuman #35874

Closed
wants to merge 11 commits into from
6 changes: 2 additions & 4 deletions Formula/coreutils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,15 @@ def install
# Symlink non-conflicting binaries
bin.install_symlink "grealpath" => "realpath"
man1.install_symlink "grealpath.1" => "realpath.1"

libexec.install_symlink "gnuman" => "man"
end

def caveats; <<~EOS
All commands have been installed with the prefix "g".
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

Expand Down
6 changes: 2 additions & 4 deletions Formula/ed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,15 @@ def install
(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
All commands have been installed with the prefix "g".
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

Expand Down
6 changes: 2 additions & 4 deletions Formula/findutils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def install
(libexec/gnupath).install_symlink f => f.basename.sub(/^g/, "")
end
end

libexec.install_symlink "gnuman" => "man"
end

def post_install
Expand All @@ -60,10 +62,6 @@ def caveats; <<~EOS
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

Expand Down
7 changes: 2 additions & 5 deletions Formula/gnu-indent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def install

(libexec/"gnubin").install_symlink bin/"gindent" => "indent"
(libexec/"gnuman/man1").install_symlink man1/"gindent.1" => "indent.1"

libexec.install_symlink "gnuman" => "man"
end

def caveats; <<~EOS
Expand All @@ -36,11 +38,6 @@ def caveats; <<~EOS
to your PATH from your bashrc like:

PATH="#{opt_libexec}/gnubin:$PATH"

Additionally, you can access its man page with normal name if you add
the "gnuman" directory to your MANPATH from your bashrc as well:

MANPATH="#{opt_libexec}/gnuman:$MANPATH"
EOS
end

Expand Down
7 changes: 2 additions & 5 deletions Formula/gnu-sed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def install

(libexec/"gnubin").install_symlink bin/"gsed" =>"sed"
(libexec/"gnuman/man1").install_symlink man1/"gsed.1" => "sed.1"

libexec.install_symlink "gnuman" => "man"
end

def caveats; <<~EOS
Expand All @@ -35,11 +37,6 @@ def caveats; <<~EOS
to your PATH from your bashrc like:

PATH="#{opt_libexec}/gnubin:$PATH"

Additionally, you can access its man page with normal name if you add
the "gnuman" directory to your MANPATH from your bashrc as well:

MANPATH="#{opt_libexec}/gnuman:$MANPATH"
EOS
end

Expand Down
7 changes: 2 additions & 5 deletions Formula/gnu-tar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ def install
# Symlink the executable into libexec/gnubin as "tar"
(libexec/"gnubin").install_symlink bin/"gtar" =>"tar"
(libexec/"gnuman/man1").install_symlink man1/"gtar.1" => "tar.1"

libexec.install_symlink "gnuman" => "man"
end

def caveats; <<~EOS
Expand All @@ -51,11 +53,6 @@ def caveats; <<~EOS
to your PATH from your bashrc like:

PATH="#{opt_libexec}/gnubin:$PATH"

Additionally, you can access its man page with normal name if you add
the "gnuman" directory to your MANPATH from your bashrc as well:

MANPATH="#{opt_libexec}/gnuman:$MANPATH"
EOS
end

Expand Down
6 changes: 2 additions & 4 deletions Formula/gnu-units.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,15 @@ def install
(libexec/"gnubin").install_symlink bin/"gunits" => "units"
(libexec/"gnubin").install_symlink bin/"gunits_cur" => "units_cur"
(libexec/"gnuman/man1").install_symlink man1/"gunits.1" => "units.1"

libexec.install_symlink "gnuman" => "man"
end

def caveats; <<~EOS
All commands have been installed with the prefix "g".
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

Expand Down
7 changes: 2 additions & 5 deletions Formula/gnu-which.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def install

(libexec/"gnubin").install_symlink bin/"gwhich" => "which"
(libexec/"gnuman/man1").install_symlink man1/"gwhich.1" => "which.1"

libexec.install_symlink "gnuman" => "man"
end

def caveats; <<~EOS
Expand All @@ -34,11 +36,6 @@ def caveats; <<~EOS
to your PATH from your bashrc like:

PATH="#{opt_libexec}/gnubin:$PATH"

Additionally, you can access its man page with normal name if you add
the "gnuman" directory to your MANPATH from your bashrc as well:

MANPATH="#{opt_libexec}/gnuman:$MANPATH"
EOS
end

Expand Down
6 changes: 2 additions & 4 deletions Formula/grep.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,15 @@ def install
(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
All commands have been installed with the prefix "g".
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

Expand Down
7 changes: 2 additions & 5 deletions Formula/inetutils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def install
(libexec/"gnubin").install_symlink bin/"g#{cmd}" => cmd
(libexec/"gnuman"/"man1").install_symlink man1/"g#{cmd}" => cmd
end

libexec.install_symlink "gnuman" => "man"
end

def caveats; <<~EOS
Expand All @@ -59,11 +61,6 @@ def caveats; <<~EOS
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

Expand Down
7 changes: 2 additions & 5 deletions Formula/make.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ def install

(libexec/"gnubin").install_symlink bin/"gmake" =>"make"
(libexec/"gnuman/man1").install_symlink man1/"gmake.1" => "make.1"

libexec.install_symlink "gnuman" => "man"
end

def caveats; <<~EOS
Expand All @@ -33,11 +35,6 @@ def caveats; <<~EOS
to your PATH from your bashrc like:

PATH="#{opt_libexec}/gnubin:$PATH"

Additionally, you can access its man page with normal name if you add
the "gnuman" directory to your MANPATH from your bashrc as well:

MANPATH="#{opt_libexec}/gnuman:$MANPATH"
EOS
end

Expand Down