This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Repathing .dylib's references for packaging within an application | |
# Author: Roberto Aguilar <roberto.c.aguilar@gmail.com> | |
# | |
# With help from Nick Jensen's blog at: | |
# http://goto11.net/how-to-bundle-a-c-library-with-a-cocoa-application/ | |
# | |
# All references within the dylib except ones to files in /usr/lib are | |
# converted over to reference the given root. |