summaryrefslogtreecommitdiff
path: root/academic/wmcalc/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'academic/wmcalc/doinst.sh')
-rw-r--r--academic/wmcalc/doinst.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/academic/wmcalc/doinst.sh b/academic/wmcalc/doinst.sh
new file mode 100644
index 0000000000..191f720108
--- /dev/null
+++ b/academic/wmcalc/doinst.sh
@@ -0,0 +1,12 @@
+
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ rm $NEW
+ fi
+}
+
+config etc/wmcalc.conf.new