diff options
author | Menno Duursma <druiloor@zonnet.nl> | 2010-05-12 23:28:44 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 23:28:44 +0200 |
commit | e51c1537575766247ff721252cc4dc0c404dabbe (patch) | |
tree | f57795118b23f6643cbe1ab02ad3440338eb287a /development/latrace/doinst.sh | |
parent | c5bf00d55cdc36b34048e4cbc2fc4151385b2a26 (diff) | |
download | slackbuilds-e51c1537575766247ff721252cc4dc0c404dabbe.tar.gz |
development/latrace: Added to 12.2 repository
Diffstat (limited to 'development/latrace/doinst.sh')
-rw-r--r-- | development/latrace/doinst.sh | 15 |
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 + |