diff options
| author | Ed Ceaser | 2010-01-14 10:21:27 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2010-02-16 22:05:22 -0800 |
| commit | 57301dec751a359e11de60070315864769091e6f (patch) | |
| tree | 469ac1effef5db482f9e9cc83929911ad45fed64 | |
| parent | a821be9f0edd356de3c52cb4633c10966dc06986 (diff) | |
| download | homebrew-57301dec751a359e11de60070315864769091e6f.tar.bz2 | |
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>
| -rw-r--r-- | Library/Formula/coreutils.rb | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/Library/Formula/coreutils.rb b/Library/Formula/coreutils.rb index c44e8a182..4e249300e 100644 --- a/Library/Formula/coreutils.rb +++ b/Library/Formula/coreutils.rb @@ -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 |
