3 prefix
=$
(kde4-config
--localprefix)
4 source1
="$prefix/share/icons/favicons"
5 source2
="$prefix/share/cache/favicons"
6 dest
="$(kde4-config --path cache)/favicons"
8 if [ -n "$prefix" -a -d "$source1" ]; then
9 while [ ! -d "$dest" ]; do
11 while [ ! -d `dirname "$dir"` ]; do
14 mkdir
"$dir" ||
exit 1
17 icons
=`ls "$source1" 2>/dev/null`
18 if [ -n "$icons" ]; then
20 mv -f "$source1/$i" "$dest/$i"
25 if [ -n "$prefix" -a -d "$source2" ]; then
26 while [ ! -d "$dest" ]; do
28 while [ ! -d `dirname "$dir"` ]; do
31 mkdir
"$dir" ||
exit 1
34 icons
=`ls "$source2" 2>/dev/null`
35 if [ -n "$icons" ]; then
37 mv -f "$source2/$i" "$dest/$i"