File: check-icons.sh

package info (click to toggle)
kadu 4.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 54,532 kB
  • sloc: cpp: 128,331; sh: 988; awk: 105; makefile: 75
file content (18 lines) | stat: -rwxr-xr-x 368 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash

echo "Wrong icons:"
allok=true

for s in 16x16 22x22 32x32 48x48 64x64 96x96 128x128; do
	for f in $(find varia/themes -type f -regex ".*/${s}/.*"); do
		if ! identify -format '%wx%h ' "${f}" | grep "${s}" > /dev/null; then
			echo -n "${f}: "
			identify -format '%wx%h ' "${f}"
			allok=false
		fi
	done
done

if $allok; then
	echo "All OK!"
fi