Created
February 21, 2013 11:11
-
-
Save jmnavarro/5003986 to your computer and use it in GitHub Desktop.
Your XCode project uses a lot of images. Maybe some of them are not used anymore, but which ones?
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
cd ./Images | |
for f in *.png; do | |
fn=`echo "$f" | cut -d'.' -f1` | |
if ! grep -q @2x <<< $fn; then | |
if ! $(grep -i -r --include=*.m --include=*.xib "`echo "$f" | cut -d'.' -f1`" ../Classes/ > /dev/null); then | |
echo $f | |
fi | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment