gcc: remove all info files.

Closes #8412.

Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
This commit is contained in:
Mike McQuaid 2017-01-02 17:33:17 +00:00 committed by Tomasz Pajor
parent 27c529bc10
commit a32eb72835

View file

@ -21,6 +21,7 @@ class Gcc < Formula
desc "GNU compiler collection" desc "GNU compiler collection"
homepage "https://gcc.gnu.org" homepage "https://gcc.gnu.org"
revision 1
head "svn://gcc.gnu.org/svn/gcc/trunk" head "svn://gcc.gnu.org/svn/gcc/trunk"
@ -189,6 +190,8 @@ class Gcc < Formula
# with system compilers. # with system compilers.
# Rename man7. # Rename man7.
Dir.glob(man7/"*.7") { |file| add_suffix file, version_suffix } Dir.glob(man7/"*.7") { |file| add_suffix file, version_suffix }
# Even when we disable building info pages some are still installed.
info.rmtree
end end
def add_suffix(file, suffix) def add_suffix(file, suffix)