diff options
author | Tomas Matejicek <tomas@slax.org> | 2016-12-24 00:26:47 +0000 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2016-12-24 00:30:10 +0000 |
commit | ee82de79c7a191ab9f362dec26f302b7922d2c3b (patch) | |
tree | 7c0882ed581838ebde88adb9d479ca642afda892 /desktop/xlunch/doinst.sh | |
parent | 31a072b732b9bbf61cfc030e120563d6e2165c12 (diff) |
desktop/xlunch: Added (graphical launcher for xorg/x11).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'desktop/xlunch/doinst.sh')
-rw-r--r-- | desktop/xlunch/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/desktop/xlunch/doinst.sh b/desktop/xlunch/doinst.sh new file mode 100644 index 0000000000000..1ef9a17a1081a --- /dev/null +++ b/desktop/xlunch/doinst.sh @@ -0,0 +1,14 @@ +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/xlunch/icons.conf.new |