add default-names to coreutils

adds a --default-names option to coreutils which generates binaries without
a prefix, removing the need for tons of aliases.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Ed Ceaser 2010-01-14 10:21:27 -08:00 committed by Adam Vandenberg
parent 246a5a8a93
commit 33bade21a0
1 changed files with 12 additions and 4 deletions

View File

@ -113,19 +113,27 @@ class Coreutils <Formula
puts COREUTILS_ALIASES
exit 0
end
system "./configure --prefix=#{prefix} --program-prefix=g"
args = [ "--prefix=#{prefix}" ]
unless ARGV.include? '--default-names'
args << "--program-prefix=g"
end
system "./configure", *args
system "make install"
end
def caveats; <<-EOS
def caveats
unless ARGV.include? '--default-names'; <<-EOS
All commands have been installed with the prefix 'g'. In order to use these
commands by default you can put some aliases in your bashrc. You can
accomplish this like so:
brew install coreutils --aliases >> ~/.bashrc
Please note the manpages are still referenced with the g-prefix.
EOS
end
end
end