Created
August 31, 2015 14:19
-
-
Save ardarda/f3a082c6f9429bff3c45 to your computer and use it in GitHub Desktop.
Finds unused png files in xcode when pasted into run shell script
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/sh | |
| PROJ=`find . -name '*.xib' -o -name '*.[mh]'` | |
| for png in `find . -name '*.png'` | |
| do | |
| name=`basename $png` | |
| if ! grep -q $name $PROJ; then | |
| echo "$png is not referenced" | |
| fi | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment