File: findmissingcrystal

package info (click to toggle)
kdesdk 4%3A3.3.2-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 27,520 kB
  • ctags: 18,649
  • sloc: cpp: 169,063; sh: 10,505; perl: 8,303; lisp: 6,329; makefile: 1,734; ansic: 1,626; python: 653; xml: 212; lex: 62; ruby: 46
file content (32 lines) | stat: -rwxr-xr-x 742 bytes parent folder | download | duplicates (11)
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