summaryrefslogtreecommitdiffstats
path: root/scripts/findmissingcrystal
blob: 9b9e9f460febef803a5430588c03a46d619d888b (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 `tqfind $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=`tqfind "${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