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
parent
246a5a8a93
commit
33bade21a0
|
@ -114,11 +114,18 @@ class Coreutils <Formula
|
|||
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:
|
||||
|
@ -128,4 +135,5 @@ accomplish this like so:
|
|||
Please note the manpages are still referenced with the g-prefix.
|
||||
EOS
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue