diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | ce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch) | |
tree | 5ac38a06f3dde268dc7927dc155896926aaf7012 /mimetypes/iconcheck.sh | |
download | tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'mimetypes/iconcheck.sh')
-rw-r--r-- | mimetypes/iconcheck.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mimetypes/iconcheck.sh b/mimetypes/iconcheck.sh new file mode 100644 index 000000000..6b74dd359 --- /dev/null +++ b/mimetypes/iconcheck.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +# Script that checks that the mimetypes point to an existing icon +# Shows only errors, unless -verbose is used + +verbose=0 +grepopt="-q" +if [ $# = 1 ]; then + if [ $1 = "-verbose" ]; then verbose=1; grepopt="-q"; fi +fi +for i in */*top ; do + icon=`grep Icon $i | sed -e s/Icon=//` + if [ -z "$icon" ]; then + echo "$i : NO ICON" + else + if [ $verbose = 1 ]; then + echo $i + fi + if ! find ../pics | grep $grepopt "mime\-$icon\.png" ; then + if [ $verbose = 0 ]; then + echo -n "$i : " + fi + echo $icon NOT FOUND + fi + fi +done |