summaryrefslogtreecommitdiff
path: root/office/apvlv/doinst.sh
diff options
context:
space:
mode:
authorGrigorios Bouzakis <grbzks@xsmail.com>2010-05-13 00:38:58 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-13 00:38:58 +0200
commit1b4b15b505a00bac6cb75cf3e199dc1e33931bf9 (patch)
tree7c179914931b83db2e5867379e4c7c929b2d1265 /office/apvlv/doinst.sh
parent3a65f31ddb215ee9bd3fa1cbed117cae30f078ec (diff)
downloadslackbuilds-1b4b15b505a00bac6cb75cf3e199dc1e33931bf9.tar.gz
office/apvlv: Updated for version 0.0.9.2
Diffstat (limited to 'office/apvlv/doinst.sh')
-rw-r--r--office/apvlv/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/office/apvlv/doinst.sh b/office/apvlv/doinst.sh
new file mode 100644
index 0000000000..c8eb9f73c9
--- /dev/null
+++ b/office/apvlv/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/apvlvrc.new
+