aboutsummaryrefslogtreecommitdiff
path: root/desktop/ede/doinst.sh
diff options
context:
space:
mode:
authorAndrew Tkalia <anddt@yandex.ru>2013-06-03 12:11:34 -0500
committerRobby Workman <rworkman@slackbuilds.org>2013-06-04 00:11:31 -0500
commit671f3b1661020901c29212ffe2884bce60e24428 (patch)
treebe9e99d069e785865550a702f894d7ce5ddb2bbe /desktop/ede/doinst.sh
parentad03b2d2613fda52673928db6a14216ec81788b2 (diff)
desktop/ede: Added (Equinox Desktop Environment)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'desktop/ede/doinst.sh')
-rw-r--r--desktop/ede/doinst.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/desktop/ede/doinst.sh b/desktop/ede/doinst.sh
new file mode 100644
index 000000000000..4410fea4d95d
--- /dev/null
+++ b/desktop/ede/doinst.sh
@@ -0,0 +1,20 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ rm $NEW
+ fi
+}
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications 2>/dev/null
+fi
+
+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
+