Created
December 11, 2009 12:11
-
-
Save ssp/254174 to your computer and use it in GitHub Desktop.
scan typical binary folders for architecture types
This file contains 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/sh | |
# Find our architechture information from binaries on the mac | |
find /Applications -type f -perm -00100 -print0 | xargs -0 -n 1 lipo -i > ~/Desktop/lipodata | |
find /Developer -type f -perm -00100 -print0 | xargs -0 -n 1 lipo -i >> ~/Desktop/lipodata | |
find /Library -type f -perm -00100 -print0 | xargs -0 -n 1 lipo -i >> ~/Desktop/lipodata | |
find /System -type f -perm -00100 -print0 | xargs -0 -n 1 lipo -i >> ~/Desktop/lipodata | |
find /private -type f -perm -00100 -print0 | xargs -0 -n 1 lipo -i >> ~/Desktop/lipodata | |
find /bin -type f -perm -00100 -print0 | xargs -0 -n 1 lipo -i >> ~/Desktop/lipodata | |
find /sbin -type f -perm -00100 -print0 | xargs -0 -n 1 lipo -i >> ~/Desktop/lipodata | |
find /usr -type f -perm -00100 -print0 | xargs -0 -n 1 lipo -i >> ~/Desktop/lipodata |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment