summaryrefslogtreecommitdiffstats
path: root/system/wmconfig/doinst.sh
diff options
context:
space:
mode:
author Tracy Williams2015-12-02 18:14:07 +0100
committer Willy Sudiarto Raharjo2015-12-02 18:14:07 +0100
commit249134a9e99082fa2d049b7739c1f69633ba8b65 (patch)
tree617ec1bd8753775adef031fe369438ea36fc38db /system/wmconfig/doinst.sh
parent243088fc34e4174a225fad26a3378be7853b2c17 (diff)
downloadslackbuilds-249134a9e99082fa2d049b7739c1f69633ba8b65.tar.gz
system/wmconfig: Updated for version 1.4.11.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/wmconfig/doinst.sh')
-rw-r--r--system/wmconfig/doinst.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/system/wmconfig/doinst.sh b/system/wmconfig/doinst.sh
new file mode 100644
index 0000000000..05a48b8703
--- /dev/null
+++ b/system/wmconfig/doinst.sh
@@ -0,0 +1,30 @@
+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/wmconfig/Applications.new
+config etc/wmconfig/Astronomy.new
+config etc/wmconfig/Desktop.new
+config etc/wmconfig/Development.new
+config etc/wmconfig/Editors.new
+config etc/wmconfig/Edutainment.new
+config etc/wmconfig/Funcs.new
+config etc/wmconfig/Games.new
+config etc/wmconfig/Graphics.new
+config etc/wmconfig/Graphics_Viewers.new
+config etc/wmconfig/Multimedia.new
+config etc/wmconfig/Network.new
+config etc/wmconfig/Office.new
+config etc/wmconfig/Office_Viewers.new
+config etc/wmconfig/Shells.new
+config etc/wmconfig/System.new
+config etc/wmconfig/Utilities.new