diff options
| author | Tryn Mirell | 2013-06-16 03:03:22 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-17 18:11:46 -0700 |
| commit | c16f2b33f362076b540eeb6cf059adf0e047fc0a (patch) | |
| tree | 737ce57b8da63d6b4afec18c8f2c981cd4d7ae94 /Library | |
| parent | e29d0045437570d152a54dcb672ca0acf6867606 (diff) | |
| download | homebrew-c16f2b33f362076b540eeb6cf059adf0e047fc0a.tar.bz2 | |
gsed: add libexec/gnubin option for unprefixed sed
Mirrors what is done for coreutils.
Closes #20536.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/gnu-sed.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Formula/gnu-sed.rb b/Library/Formula/gnu-sed.rb index 9e711a3ad..1bdbbd35d 100644 --- a/Library/Formula/gnu-sed.rb +++ b/Library/Formula/gnu-sed.rb @@ -14,11 +14,25 @@ class GnuSed < Formula system "./configure", *args system "make install" + + (libexec/'gnubin').install_symlink bin/"gsed" =>"sed" + (libexec/'gnuman/man1').install_symlink man1/"gsed.1" => "sed.1" end def caveats; <<-EOS.undent The command has been installed with the prefix 'g'. If you do not want the prefix, install using the 'default-names' option. + + 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_prefix}/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_prefix}/libexec/gnuman:$MANPATH" + EOS end |
