summaryrefslogtreecommitdiffstats
path: root/system/termite/doinst.sh
diff options
context:
space:
mode:
author Azure Zanculmarktum2017-05-11 17:39:14 +0200
committer Willy Sudiarto Raharjo2017-05-13 01:59:33 +0200
commit06c2d3ce35ef93dae0244eab10f5f5229e98f9e4 (patch)
tree43f3894e8f70eb6c34c7d4422061b2e7ae721ad3 /system/termite/doinst.sh
parent7c595d1a83d190a47146b5f14481a308ade71633 (diff)
downloadslackbuilds-06c2d3ce35ef93dae0244eab10f5f5229e98f9e4.tar.gz
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.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/system/termite/doinst.sh b/system/termite/doinst.sh
new file mode 100644
index 0000000000..77537ac377
--- /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