summaryrefslogtreecommitdiffstats
path: root/development/eclipse/doinst.sh
diff options
context:
space:
mode:
author Antonio Hernández Blas2010-05-13 00:24:30 +0200
committer David Somero2010-05-13 00:24:30 +0200
commit8e5a81f1f03e9720661f9a23cbaa260646b3e4a6 (patch)
tree09ec32d1d0981837aca9b11d7e1376aa2c1763cd /development/eclipse/doinst.sh
parent1dfb646ce25b091806e5384d6c2253413bf81628 (diff)
downloadslackbuilds-8e5a81f1f03e9720661f9a23cbaa260646b3e4a6.tar.gz
development/eclipse: Updated for version 3.5.1
Diffstat (limited to 'development/eclipse/doinst.sh')
-rw-r--r--development/eclipse/doinst.sh19
1 files changed, 13 insertions, 6 deletions
diff --git a/development/eclipse/doinst.sh b/development/eclipse/doinst.sh
index cc11d6e883..a06ab18ea8 100644
--- a/development/eclipse/doinst.sh
+++ b/development/eclipse/doinst.sh
@@ -12,13 +12,20 @@ config() {
# Otherwise, we leave the .new copy for the admin to consider...
}
-config opt/eclipse/configuration/config.ini.new
-config opt/eclipse/eclipse.ini.new
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
-if [ -x usr/bin/update-desktop-database ]; then
- usr/bin/update-desktop-database -q usr/share/applications
+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/update-mime-database ]; then
- usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
fi
+
+config opt/eclipse/configuration/config.ini.new
+config opt/eclipse/eclipse.ini.new
+