summaryrefslogtreecommitdiff
path: root/desktop/wmweather/doinst.sh
diff options
context:
space:
mode:
authorCezary M. Kruk <c.kruk@bigfoot.com>2010-05-13 00:23:36 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:23:36 +0200
commit0b9deaceefe5fc6c380ce83c62ed07ced82e8530 (patch)
treece2ea720e7bfb0fdd796f0ab0c3c6437a3bfb406 /desktop/wmweather/doinst.sh
parent9917dea7d7240df327182c33ceb5a1bb6952e0d2 (diff)
downloadslackbuilds-0b9deaceefe5fc6c380ce83c62ed07ced82e8530.tar.gz
desktop/wmweather: Updated for version 2.4.4
Diffstat (limited to 'desktop/wmweather/doinst.sh')
-rw-r--r--desktop/wmweather/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/desktop/wmweather/doinst.sh b/desktop/wmweather/doinst.sh
new file mode 100644
index 0000000000..7ee2661a9b
--- /dev/null
+++ b/desktop/wmweather/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/X11/WindowMaker/wmweather.conf.new
+