2015-01-15 20:44:22 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2015-05-21 16:52:13 +00:00
|
|
|
if test \( -x "$(which gtk-update-icon-cache 2>/dev/null)" \) -a \( -d /app/exports/share/icons/hicolor \); then
|
|
|
|
cp /usr/share/icons/hicolor/index.theme /app/exports/share/icons/hicolor/
|
|
|
|
for dir in /app/exports/share/icons/*; do
|
2015-01-15 20:44:22 +00:00
|
|
|
if test -f $dir/index.theme; then
|
|
|
|
if ! gtk-update-icon-cache --quiet $dir; then
|
|
|
|
echo "Failed to run gtk-update-icon-cache for $dir"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|