aboutsummaryrefslogtreecommitdiff
path: root/network/w3m/doinst.sh
diff options
context:
space:
mode:
authorDave Woodfall <dave@tty1.uk>2018-11-29 11:03:39 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-12-01 07:27:59 +0700
commitdd7b25ea2445f1c6e5bb9e673f086c43b3ae5e3d (patch)
tree78510f6b8eca9944ac139c4f4bd35ed84f51b441 /network/w3m/doinst.sh
parent313be67687dff9b78e8953802a21266f010870df (diff)
network/w3m: Update to 0.5.3_34
Diffstat (limited to 'network/w3m/doinst.sh')
-rw-r--r--network/w3m/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/network/w3m/doinst.sh b/network/w3m/doinst.sh
new file mode 100644
index 0000000000000..17f9dccd7e88f
--- /dev/null
+++ b/network/w3m/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/w3m/config.new
+config etc/w3m/mailcap.new