summaryrefslogtreecommitdiff
path: root/libraries/GConf/doinst.sh
diff options
context:
space:
mode:
authorkoolniczka <koolniczka@szm.com>2010-05-11 20:00:40 +0200
committerEric Hameleers <alien@slackbuilds.org>2010-05-11 20:00:40 +0200
commit49996257744e2b79fddf86eecbb87cc89d9598c8 (patch)
tree729b63c0d7b332db3d1440d34294d8891ae30037 /libraries/GConf/doinst.sh
parent4a2b02007af14ee2f060660e939298d5e4c97b47 (diff)
downloadslackbuilds-49996257744e2b79fddf86eecbb87cc89d9598c8.tar.gz
libraries/GConf: Added to 12.0 repository
Diffstat (limited to 'libraries/GConf/doinst.sh')
-rw-r--r--libraries/GConf/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/libraries/GConf/doinst.sh b/libraries/GConf/doinst.sh
new file mode 100644
index 0000000000..e2936a9e96
--- /dev/null
+++ b/libraries/GConf/doinst.sh
@@ -0,0 +1,15 @@
+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 etc/gconf/2/path.new
+