summaryrefslogtreecommitdiffstats
path: root/libraries/libgda/doinst.sh
diff options
context:
space:
mode:
author Willy Sudiarto Raharjo <willysr@slackbuilds.org>2013-12-25 16:20:58 -0600
committer Erik Hanson <erik@slackbuilds.org>2014-01-07 11:13:30 -0600
commit67415a1571d2bff9910fb6d06ac4a1642b2af35b (patch)
tree58a2410f4263aa7d95dd945561b46a7f684fbd36 /libraries/libgda/doinst.sh
parentf2cd23f78cb22566edee9da0241fa9e37152ce7d (diff)
downloadslackbuilds-67415a1571d2bff9910fb6d06ac4a1642b2af35b.tar.gz
slackbuilds-67415a1571d2bff9910fb6d06ac4a1642b2af35b.tar.xz
libraries/libgda: Updated for version 5.2.2.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/libgda/doinst.sh')
-rw-r--r--libraries/libgda/doinst.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/libraries/libgda/doinst.sh b/libraries/libgda/doinst.sh
index 3e5691a052..695a78da1d 100644
--- a/libraries/libgda/doinst.sh
+++ b/libraries/libgda/doinst.sh
@@ -1,3 +1,16 @@
+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...
+}
+
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
@@ -7,3 +20,6 @@ if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
fi
fi
+
+config etc/libgda-5.0/config.new
+