Skip to content

Instantly share code, notes, and snippets.

@floriankrueger
Created May 23, 2012 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save floriankrueger/2775232 to your computer and use it in GitHub Desktop.
Save floriankrueger/2775232 to your computer and use it in GitHub Desktop.
finds and prints unreferenced png files from xcode projects
#!/bin/sh
PROJ=`find . -name '*.xib' -o -name '*.[mh]'`
for png in `find . -name '*.png'`
do
filename=`basename $png`
name=${filename%.*}
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