77 |
|
|
78 |
gn2_update_icon_cache() |
gn2_update_icon_cache() |
79 |
{ |
{ |
80 |
|
local icons |
81 |
|
|
82 |
if [ -x ${MROOT}/usr/bin/gtk-update-icon-cache ] |
if [ -x ${MROOT}/usr/bin/gtk-update-icon-cache ] |
83 |
then |
then |
84 |
pushd ${BUILDDIR}/${PKGNAME}/binfiles &> /dev/null |
if [ -d ${BUILDDIR}/${PKGNAME}/binfiles/usr/share/icons ] |
85 |
local icons=$(find 'usr/share/icons' -maxdepth 1 -mindepth 1 -type d 2> /dev/null) |
then |
86 |
popd &> /dev/null |
pushd ${BUILDDIR}/${PKGNAME}/binfiles &> /dev/null |
87 |
|
icons=$(find 'usr/share/icons' -maxdepth 1 -mindepth 1 -type d 2> /dev/null) |
88 |
|
popd &> /dev/null |
89 |
|
else |
90 |
|
icons="usr/share/icons/hicolor" |
91 |
|
fi |
92 |
|
|
93 |
# abort here, if no icons where found |
# abort here, if no icons where found |
94 |
[[ -z ${icons} ]] && return |
[[ -z ${icons} ]] && return |