Change memo menu icon
[apps/home/memo.git] / scripts / images_strip.sh
1 #!/bin/bash
2 #theme image strip
3 find ../theme -depth -iname "*.png" | xargs -n 1 -I {} basename {} | sort -u > /tmp/origin
4 while LINE=$(line) ; do
5     result=$(grep $LINE ../theme -r)
6     if [[ "$result" == "" ]] ; then
7         echo "remove $LINE ......"
8         find ../theme -depth -iname "$LINE" | xargs -n 1 rm -f
9     fi
10 done < /tmp/origin
11
12 #system image strip
13 find ../images -depth -iname "*.png" | xargs -n 1 -I {} basename {} | sort -u > /tmp/origin
14 while LINE=$(line) ; do
15     result=$(grep $LINE ../src ../edc ../memo.edc ../include ../extend -r)
16     if [[ "$result" == "" ]] ; then
17         echo "remove $LINE ......"
18         find ../images -depth -iname "$LINE" | xargs -n 1 rm -f
19     fi
20 done < /tmp/origin