summaryrefslogtreecommitdiff
path: root/desktop/subtle/doinst.sh
diff options
context:
space:
mode:
authorVincent Batts <vbatts@hashbangbash.com>2011-07-09 16:17:25 -0400
committerNiels Horn <niels.horn@slackbuilds.org>2011-07-14 21:54:03 -0300
commitedb063d57495e480c0ae2120d6cf65c67d515ce6 (patch)
tree4e92a0960514fb5ab958a2e6f713962aebd8588a /desktop/subtle/doinst.sh
parente0f1aa4a109dfaa680f5b82ae313f0059919d568 (diff)
downloadslackbuilds-edb063d57495e480c0ae2120d6cf65c67d515ce6.tar.gz
desktop/subtle: Added (ruby based tiling WM)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'desktop/subtle/doinst.sh')
-rw-r--r--desktop/subtle/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/desktop/subtle/doinst.sh b/desktop/subtle/doinst.sh
new file mode 100644
index 0000000000..f1c242daed
--- /dev/null
+++ b/desktop/subtle/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/xdg/subtle/subtle.rb.new
+