Created
May 26, 2014 19:34
-
-
Save luisobo/d0de697883eabe867925 to your computer and use it in GitHub Desktop.
Detect unused assets
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/bash | |
all_assets=`find $1 -type f | uniq | grep -v @2x` | |
for asset in $all_assets; do | |
name=`basename $asset | cut -d . -f 1` | |
count=`git grep $name | grep -v project.pbxproj: | wc -l` | |
echo -e "$count\t$asset" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment