Skip to content

Instantly share code, notes, and snippets.

@0xc010d
Created May 24, 2012 09:04
Show Gist options
  • Select an option

  • Save 0xc010d/2780351 to your computer and use it in GitHub Desktop.

Select an option

Save 0xc010d/2780351 to your computer and use it in GitHub Desktop.
oldIFS=$IFS
IFS=$'\n'
cd $BUILT_PRODUCTS_DIR
for file in `find . -type f -name *.png`
do
filename=$(basename $file)
filename=${filename%.*}
dirname=$(dirname $file)
if [ "${filename: -3}" == "@2x" ]
then
filename="${filename%@2x}.png"
else
filename="[email protected]"
fi
if [ ! -f "$dirname/$filename" ]
then
echo "warning: $filename was not found"
fi
done
IFS=oldIFS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment