summaryrefslogtreecommitdiffstats
path: root/libraries/wvstreams/doinst.sh
diff options
context:
space:
mode:
author Vincent Batts2010-05-11 22:54:27 +0200
committer Robby Workman2010-05-11 22:54:27 +0200
commitb51093bce423f2646a045fb9406ea4a5a0834eb0 (patch)
tree4e467c22c4b72da276c97e14bc92a62185ce1142 /libraries/wvstreams/doinst.sh
parentb0120a814160c97c9d66d20803bed479aa7d2798 (diff)
downloadslackbuilds-b51093bce423f2646a045fb9406ea4a5a0834eb0.tar.gz
libraries/wvstreams: Added to 12.1 repository
Diffstat (limited to 'libraries/wvstreams/doinst.sh')
-rw-r--r--libraries/wvstreams/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/libraries/wvstreams/doinst.sh b/libraries/wvstreams/doinst.sh
new file mode 100644
index 0000000000..be3b470b73
--- /dev/null
+++ b/libraries/wvstreams/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/uniconf.conf.new
+