From 1a5a4762644575e4607c104c8e3e0d0e1763b371 Mon Sep 17 00:00:00 2001 From: MoonFruit Date: Fri, 11 Jan 2019 09:58:44 +0800 Subject: [PATCH 01/11] coreutils: create symbolic link `man` to `gnuman` --- Formula/coreutils.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Formula/coreutils.rb b/Formula/coreutils.rb index 672f1d17d2991..bb29e312cff8b 100644 --- a/Formula/coreutils.rb +++ b/Formula/coreutils.rb @@ -66,6 +66,8 @@ 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 @@ -73,10 +75,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 From 9c8af0ac6498a948aae862d903df3fb76abba2c8 Mon Sep 17 00:00:00 2001 From: MoonFruit Date: Fri, 11 Jan 2019 09:59:44 +0800 Subject: [PATCH 02/11] ed: create symbolic link `man` to `gnuman` --- Formula/ed.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Formula/ed.rb b/Formula/ed.rb index 9b0bab1c80443..3ccde513baa49 100644 --- a/Formula/ed.rb +++ b/Formula/ed.rb @@ -23,6 +23,8 @@ 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 @@ -30,10 +32,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 From 45fcac59071f86dbfb16e436dc1939a15e105f0f Mon Sep 17 00:00:00 2001 From: MoonFruit Date: Fri, 11 Jan 2019 10:00:17 +0800 Subject: [PATCH 03/11] 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 eca2b2e466c1b..920b4f67e4a86 100644 --- a/Formula/findutils.rb +++ b/Formula/findutils.rb @@ -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 @@ -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 From 7bdf99cb996311094bcbbbd058e1a5db2ba692e9 Mon Sep 17 00:00:00 2001 From: MoonFruit Date: Fri, 11 Jan 2019 10:00:36 +0800 Subject: [PATCH 04/11] gnu-indent: create symbolic link `man` to `gnuman` --- Formula/gnu-indent.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Formula/gnu-indent.rb b/Formula/gnu-indent.rb index 4c0cea6be408f..a054ad1aec6a4 100644 --- a/Formula/gnu-indent.rb +++ b/Formula/gnu-indent.rb @@ -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 @@ -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 From e6fd3513d88a9d0169aa2bdabf4ceee27000c4d9 Mon Sep 17 00:00:00 2001 From: MoonFruit Date: Fri, 11 Jan 2019 10:00:55 +0800 Subject: [PATCH 05/11] gnu-sed: create symbolic link `man` to `gnuman` --- Formula/gnu-sed.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Formula/gnu-sed.rb b/Formula/gnu-sed.rb index 00916548ed65e..892df27acb71f 100644 --- a/Formula/gnu-sed.rb +++ b/Formula/gnu-sed.rb @@ -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 @@ -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 From a70e4000033ecb0947033af109d56d7140c3dac1 Mon Sep 17 00:00:00 2001 From: MoonFruit Date: Fri, 11 Jan 2019 10:01:03 +0800 Subject: [PATCH 06/11] gnu-tar: create symbolic link `man` to `gnuman` --- Formula/gnu-tar.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Formula/gnu-tar.rb b/Formula/gnu-tar.rb index be8fb6d6d0307..1b70c9b838311 100644 --- a/Formula/gnu-tar.rb +++ b/Formula/gnu-tar.rb @@ -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 @@ -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 From 608545bf840caa3975d622e02cd60ae01d1ae920 Mon Sep 17 00:00:00 2001 From: MoonFruit Date: Fri, 11 Jan 2019 10:01:19 +0800 Subject: [PATCH 07/11] gnu-units: create symbolic link `man` to `gnuman` --- Formula/gnu-units.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Formula/gnu-units.rb b/Formula/gnu-units.rb index 6c09edf14bebd..5141d96bbd262 100644 --- a/Formula/gnu-units.rb +++ b/Formula/gnu-units.rb @@ -27,6 +27,8 @@ 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 @@ -34,10 +36,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 From d313f6eeced7478ecddb0a8c0ea1315c1c0aa5ec Mon Sep 17 00:00:00 2001 From: MoonFruit Date: Fri, 11 Jan 2019 10:01:30 +0800 Subject: [PATCH 08/11] gnu-which: create symbolic link `man` to `gnuman` --- Formula/gnu-which.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Formula/gnu-which.rb b/Formula/gnu-which.rb index 1b4f0dab3c644..2994061dadd41 100644 --- a/Formula/gnu-which.rb +++ b/Formula/gnu-which.rb @@ -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 @@ -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 From 9370a64a2382efcb5f7c8cc42a75f8bc13c0c70a Mon Sep 17 00:00:00 2001 From: MoonFruit Date: Fri, 11 Jan 2019 10:01:41 +0800 Subject: [PATCH 09/11] grep: create symbolic link `man` to `gnuman` --- Formula/grep.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Formula/grep.rb b/Formula/grep.rb index b9d77674afa33..9d4866d18440f 100644 --- a/Formula/grep.rb +++ b/Formula/grep.rb @@ -35,6 +35,8 @@ 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 @@ -42,10 +44,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 From 7baa6ced22164078ee30cfeabf5c1e7808693f41 Mon Sep 17 00:00:00 2001 From: MoonFruit Date: Fri, 11 Jan 2019 10:01:50 +0800 Subject: [PATCH 10/11] inetutils: create symbolic link `man` to `gnuman` --- Formula/inetutils.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Formula/inetutils.rb b/Formula/inetutils.rb index f9dd1b2b96fb4..d7b89c581d8d2 100644 --- a/Formula/inetutils.rb +++ b/Formula/inetutils.rb @@ -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 @@ -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 From 643a4262e77a30fe08ab0466b85b422e007571c8 Mon Sep 17 00:00:00 2001 From: MoonFruit Date: Fri, 11 Jan 2019 10:02:06 +0800 Subject: [PATCH 11/11] make: create symbolic link `man` to `gnuman` --- Formula/make.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Formula/make.rb b/Formula/make.rb index 2b163e4d26ffe..764f688313129 100644 --- a/Formula/make.rb +++ b/Formula/make.rb @@ -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 @@ -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