summaryrefslogtreecommitdiffstats
path: root/scripts/findmissingcrystal
blob: 258119c3a638f0ff62d9ddf809d0d39a027e2962 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
#
# Small script to look at Crystal icons and see which ones are still the
# same as kdeclassic/hicolor.

if [ -z "$1" ] ; then
	echo "usage: findmissingcrystal module"
	exit 1
fi

for icon in `find $1 -name cr*.png` ; do
	fullname=`echo $icon | sed 's,.*cr,,'`
	res=`echo $fullname | cut -d- -f1`
	type=`echo $fullname | cut -d- -f2`
	name=`echo $fullname | cut -d- -f3`
	dir="kdeartwork/IconThemes/kdeclassic/${res}x${res}/${type}s/"
	if [ -d "$dir" ]; then
		classic=`find "${dir}" -name "$name"`
		if [ -s "$classic" ]; then
			diff=`diff $icon $classic`
			if [ -z "$diff" ]; then
				echo "ERR/same: $icon"
			else
				echo "OK /diff: $icon"
			fi
		else
			echo "OK /new : $icon"
		fi
	else
		echo "OK /new : $icon"
	fi
done