summaryrefslogtreecommitdiff
path: root/sysui/desktop
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-09-26 14:01:36 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-09-26 14:01:36 +0000
commitb94e473f489e948f59a1faa9f75ae454f832122a (patch)
treeb1da040464e3de33771c101ec16a337f23c83efc /sysui/desktop
parenta5840486e3079da311a21a03dac94049206aa8e7 (diff)
CWS-TOOLING: integrate CWS sysui31_DEV300
Diffstat (limited to 'sysui/desktop')
-rw-r--r--sysui/desktop/freedesktop/freedesktop-menus.spec79
1 files changed, 25 insertions, 54 deletions
diff --git a/sysui/desktop/freedesktop/freedesktop-menus.spec b/sysui/desktop/freedesktop/freedesktop-menus.spec
index 517c1d39ee..a1007ca7fe 100644
--- a/sysui/desktop/freedesktop/freedesktop-menus.spec
+++ b/sysui/desktop/freedesktop/freedesktop-menus.spec
@@ -101,40 +101,24 @@ if [ "$1" = "1" ] ; then # first install
if (which update-mime-database); then
update-mime-database /usr/share/mime
fi
-
+fi
#run always
- for theme in gnome hicolor locolor; do
+for theme in gnome hicolor locolor; do
if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then
- # touch it, just in case we cannot find the binary...
- touch /usr/share/icons/$theme
- if [ -x /opt/gnome/bin/gtk-update-icon-cache ]; then
- /opt/gnome/bin/gtk-update-icon-cache --ignore-theme-index -f /usr/share/icons/$theme
- elif (which gtk-update-icon-cache); then
- gtk-update-icon-cache -f /usr/share/icons/$theme
- fi
- # ignore errors (e.g. when there is a cache, but no index.theme)
- #true
+ # touch it, just in case we cannot find the binary...
+ touch /usr/share/icons/$theme
+ if [ -x /opt/gnome/bin/gtk-update-icon-cache ]; then
+ /opt/gnome/bin/gtk-update-icon-cache -q /usr/share/icons/$theme
+ elif (which gtk-update-icon-cache); then
+ gtk-update-icon-cache -q /usr/share/icons/$theme
+ fi
+ # ignore errors (e.g. when there is a cache, but no index.theme)
+ true
fi
- done
-fi
+done
-
-# for theme in gnome hicolor locolor; do
-# if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then
- # touch it, just in case we cannot find the binary...
-# touch /usr/share/icons/$theme
-# if [ -x /opt/gnome/bin/gtk-update-icon-cache ]; then
-# /opt/gnome/bin/gtk-update-icon-cache -q /usr/share/icons/$theme
-# elif (which gtk-update-icon-cache); then
-# gtk-update-icon-cache -q /usr/share/icons/$theme
-# fi
-# # ignore errors (e.g. when there is a cache, but no index.theme)
-# true
-# fi
-# done
-#fi
# update /etc/mime.types
# backing out existing entries to avoid duplicates
@@ -310,36 +294,23 @@ if [ "$1" = 0 ] ; then # only run when erasing the package - other cases handled
if (which update-mime-database); then
update-mime-database /usr/share/mime
fi
+fi
#run always
- for theme in gnome hicolor locolor; do
- if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then
- # touch it, just in case we cannot find the binary...
- touch /usr/share/icons/$theme
- if [ -x /opt/gnome/bin/gtk-update-icon-cache ]; then
- /opt/gnome/bin/gtk-update-icon-cache --ignore-theme-index -f /usr/share/icons/$theme
- elif (which gtk-update-icon-cache); then
- gtk-update-icon-cache -f /usr/share/icons/$theme
- fi
- #true
+for theme in gnome hicolor locolor; do
+ if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then
+ # touch it, just in case we cannot find the binary...
+ touch /usr/share/icons/$theme
+ if [ -x /opt/gnome/bin/gtk-update-icon-cache ]; then
+ /opt/gnome/bin/gtk-update-icon-cache -q /usr/share/icons/$theme
+ elif (which gtk-update-icon-cache); then
+ gtk-update-icon-cache -q /usr/share/icons/$theme
fi
- done
-fi
-
-#for theme in gnome hicolor locolor; do
-# if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then
- # touch it, just in case we cannot find the binary...
-# touch /usr/share/icons/$theme
-# if [ -x /opt/gnome/bin/gtk-update-icon-cache ]; then
-# /opt/gnome/bin/gtk-update-icon-cache -q /usr/share/icons/$theme
-# elif (which gtk-update-icon-cache); then
-# gtk-update-icon-cache -q /usr/share/icons/$theme
-# fi
# ignore errors (e.g. when there is a cache, but no index.theme)
-# true
-# fi
-#done
-#fi
+ true
+ fi
+done
+
%files
# specify stale symlinks verbatim, not as glob - a change in recent versions of
# glibc breaks rpm unless rpm is build with internal glob-matching (issue 49374)