File indexing completed on 2024-12-15 05:11:24

0001 #!/bin/sh
0002 #
0003 # Small script to look at Crystal icons and see which ones are still the
0004 # same as kdeclassic/hicolor.
0005 
0006 if [ -z "$1" ] ; then
0007         echo "usage: findmissingcrystal module"
0008         exit 1
0009 fi
0010 
0011 for icon in `find $1 -name cr*.png` ; do
0012         fullname=`echo $icon | sed 's,.*cr,,'`
0013         res=`echo $fullname | cut -d- -f1`
0014         type=`echo $fullname | cut -d- -f2`
0015         name=`echo $fullname | cut -d- -f3`
0016         dir="kdeartwork/IconThemes/kdeclassic/${res}x${res}/${type}s/"
0017         if [ -d "$dir" ]; then
0018                 classic=`find "${dir}" -name "$name"`
0019                 if [ -s "$classic" ]; then
0020                         diff=`diff $icon $classic`
0021                         if [ -z "$diff" ]; then
0022                                 echo "ERR/same: $icon"
0023                         else
0024                                 echo "OK /diff: $icon"
0025                         fi
0026                 else
0027                         echo "OK /new : $icon"
0028                 fi
0029         else
0030                 echo "OK /new : $icon"
0031         fi
0032 done