summaryrefslogtreecommitdiff
path: root/development/monotone/doinst.sh
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2012-09-29 16:06:51 -0400
committerRobby Workman <rworkman@slackbuilds.org>2012-09-29 17:17:42 -0500
commita62126deb67c3de7362ee742cc7eba49c88c0dd6 (patch)
tree49cb9d72d5368c1a90b246d3c81b870f8747e46b /development/monotone/doinst.sh
parentec8897b13f7e9ef53c62d6e18fb1715baeef0aa1 (diff)
downloadslackbuilds-a62126deb67c3de7362ee742cc7eba49c88c0dd6.tar.gz
development/monotone: Fixed (Don't use /usr/etc)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'development/monotone/doinst.sh')
-rw-r--r--development/monotone/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/development/monotone/doinst.sh b/development/monotone/doinst.sh
new file mode 100644
index 0000000000..19dc6d94d3
--- /dev/null
+++ b/development/monotone/doinst.sh
@@ -0,0 +1,14 @@
+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/bash_completion.d/monotone.bash_completion.new