mxcl/homebrew — pull request #12437 by jacknagel (2012-05-25 20:27:17+00:00)
Title: fix_install_names improvements

Current the fix_install_names code only looks at files with the `.dylib` extension in the top level lib directory. This means that things like

```
/usr/local/Cellar/qt/4.8.2/lib/QtCore.framework/QtCore
```

do not have their install names fixed, and subsequent upgrades cause things linked to them (e.g. PyQt) to break.

These two patches remedy the situation by recursing into subdirectories and using file(1) to determine what is and isn't a dylib.