- # our aclocal must go first: https://github.com/mxcl/homebrew/issues/10618
- (share/"aclocal/dirlist").write <<-EOS.undent
- #{HOMEBREW_PREFIX}/share/aclocal
- /usr/share/aclocal
- EOS
+ # remove all files that clash with the "automake" formula ...
+ system "rm", "#{prefix}/bin/aclocal"
+ system "rm", "#{prefix}/bin/automake"
+ system "rm", "#{prefix}/share/man/man1/aclocal.1"
+ system "rm", "#{prefix}/share/man/man1/automake.1"
+ system "rm", "-r", "#{prefix}/share/doc"
+ system "rm", "-r", "#{prefix}/share/info"