aboutsummaryrefslogtreecommitdiff
path: root/desktop/wmfs/doinst.sh
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <bosth@alumni.sfu.ca>2011-05-15 22:05:37 -0500
committerRobby Workman <rworkman@slackbuilds.org>2011-05-15 22:05:37 -0500
commit5f21d4dff2ed450ff124a25ce7487cd4ef8c02d6 (patch)
tree014dbc485de25f9c81a6161810d491bd2d609cf9 /desktop/wmfs/doinst.sh
parentad3f3308e812407b46cc134d2b46b759aad342f2 (diff)
desktop/wmfs: Added (dynamic tiling window manager)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'desktop/wmfs/doinst.sh')
-rw-r--r--desktop/wmfs/doinst.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/desktop/wmfs/doinst.sh b/desktop/wmfs/doinst.sh
new file mode 100644
index 0000000000000..a47480c86eb7b
--- /dev/null
+++ b/desktop/wmfs/doinst.sh
@@ -0,0 +1,10 @@
+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
+}
+config etc/wmfs/wmfsrc.new