Skip to content

Commit

Permalink
gsed: add libexec/gnubin option for unprefixed sed
Browse files Browse the repository at this point in the history
Mirrors what is done for coreutils.

Closes Homebrew/legacy-homebrew#20536.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
Tryn Mirell authored and adamv committed Jun 18, 2013
1 parent 4dda0b7 commit dc58b7b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Formula/gnu-sed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,25 @@ def install

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

Expand Down

0 comments on commit dc58b7b

Please sign in to comment.