diff options
author | Vincent Batts <vbatts@hashbangbash.com> | 2011-07-09 16:17:25 -0400 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-07-14 21:54:03 -0300 |
commit | edb063d57495e480c0ae2120d6cf65c67d515ce6 (patch) | |
tree | 4e92a0960514fb5ab958a2e6f713962aebd8588a /desktop/subtle/doinst.sh | |
parent | e0f1aa4a109dfaa680f5b82ae313f0059919d568 (diff) | |
download | slackbuilds-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.sh | 15 |
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 + |