summaryrefslogtreecommitdiffstats
path: root/office/openoffice.org/doinst.sh
diff options
context:
space:
mode:
author Gerardo Gómez2011-09-06 05:57:09 +0200
committer Robby Workman2011-09-06 05:57:09 +0200
commite5f39031d0403be41788aa7866d27a35b80edce3 (patch)
treeb7bbd85b312f715d25473ab96babe9f8254ce259 /office/openoffice.org/doinst.sh
parent32a3f978c6623706ae5609ae8cc9a35d0f3ca7f1 (diff)
downloadslackbuilds-e5f39031d0403be41788aa7866d27a35b80edce3.tar.gz
office/openoffice.org: Added (yes, re-added)
SBo Admin Note: Gerardo is working with upstream OOo and thus wants to have OOo maintained here. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'office/openoffice.org/doinst.sh')
-rw-r--r--office/openoffice.org/doinst.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/office/openoffice.org/doinst.sh b/office/openoffice.org/doinst.sh
new file mode 100644
index 0000000000..88ab9f58ff
--- /dev/null
+++ b/office/openoffice.org/doinst.sh
@@ -0,0 +1,16 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications
+fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
+if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ for theme in gnome locolor hicolor ; do
+ if [ -e usr/share/icons/$theme/icon-theme.cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/$theme >/dev/null 2>&1
+ fi
+ done
+fi
+