Created
December 6, 2011 23:47
-
-
Save dstnbrkr/1440655 to your computer and use it in GitHub Desktop.
Remove unused resources from xcode project.
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 | |
for f in `find Resources/Images -type f ! -name '*@2x.png' ! -name 'Default*.png'`; do | |
FILENAME=`basename $f`; | |
NUSAGES=`usages $FILENAME | wc -l | awk '{print $1}'`; | |
if [ $NUSAGES = 0 ]; then | |
echo $f; | |
fi; | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! So glad this could be helpful!