summaryrefslogtreecommitdiff
path: root/development/latrace/doinst.sh
diff options
context:
space:
mode:
authorMenno Duursma <druiloor@zonnet.nl>2010-05-12 23:28:44 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 23:28:44 +0200
commite51c1537575766247ff721252cc4dc0c404dabbe (patch)
treef57795118b23f6643cbe1ab02ad3440338eb287a /development/latrace/doinst.sh
parentc5bf00d55cdc36b34048e4cbc2fc4151385b2a26 (diff)
downloadslackbuilds-e51c1537575766247ff721252cc4dc0c404dabbe.tar.gz
development/latrace: Added to 12.2 repository
Diffstat (limited to 'development/latrace/doinst.sh')
-rw-r--r--development/latrace/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/development/latrace/doinst.sh b/development/latrace/doinst.sh
new file mode 100644
index 0000000000..991957975c
--- /dev/null
+++ b/development/latrace/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/latrace.conf.new
+