Skip to content

Instantly share code, notes, and snippets.

@lokkju
Forked from anonymous/gist:4466101
Created January 6, 2013 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lokkju/4466103 to your computer and use it in GitHub Desktop.
Save lokkju/4466103 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "This script prints the filenames of any dylibs in your /usr/local/ that depend on the System Python"
for f in `find /usr/local -iname "*.dylib"`; do
otool -L "$f" | grep Python | grep System &> /dev/null
status=$?
if [ $status -eq 0 ]; then
echo "$status: $f"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment