diff options
author | Azure Zanculmarktum <zanculmarktum@gmail.com> | 2017-05-11 22:39:14 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-05-13 06:59:33 +0700 |
commit | 06c2d3ce35ef93dae0244eab10f5f5229e98f9e4 (patch) | |
tree | 43f3894e8f70eb6c34c7d4422061b2e7ae721ad3 /system/termite/doinst.sh | |
parent | 7c595d1a83d190a47146b5f14481a308ade71633 (diff) |
system/termite: Added (a keyboard-centric VTE-based terminal).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/termite/doinst.sh')
-rw-r--r-- | system/termite/doinst.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/system/termite/doinst.sh b/system/termite/doinst.sh new file mode 100644 index 0000000000000..77537ac37724d --- /dev/null +++ b/system/termite/doinst.sh @@ -0,0 +1,18 @@ +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/termite/config.new + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi |