aboutsummaryrefslogtreecommitdiff
path: root/development/eclipse/doinst.sh
diff options
context:
space:
mode:
authorAntonio Hernández Blas <hba.nihilismus@gmail.com>2010-05-11 22:22:29 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-11 22:22:29 +0200
commit420f78eec7649ff40bd667c0796048d893dc686a (patch)
treeecc495428bfa7c6d05cb8c05ded8a85cde9f2c43 /development/eclipse/doinst.sh
parent75c950037f4a002c47794fb7d5cefd719f4fe671 (diff)
development/eclipse: Updated for version 3.4.1
Diffstat (limited to 'development/eclipse/doinst.sh')
-rw-r--r--development/eclipse/doinst.sh17
1 files changed, 16 insertions, 1 deletions
diff --git a/development/eclipse/doinst.sh b/development/eclipse/doinst.sh
index 4557defa56c87..cc11d6e883820 100644
--- a/development/eclipse/doinst.sh
+++ b/development/eclipse/doinst.sh
@@ -1,4 +1,20 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD|md5sum)" = "$(cat $NEW|md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # 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
fi
@@ -6,4 +22,3 @@ fi
if [ -x usr/bin/update-mime-database ]; then
usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi
-