diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-03-08 11:52:23 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-03-08 11:52:23 +0700 |
commit | d2ccefdfd7c2c454670b37581c88279d325eb70c (patch) | |
tree | bba02533e7458d773aec969661b42ba49c8f40f3 /development/latrace/doinst.sh | |
parent | 3ac6d120332bef5722d4f42621b7c2bdc9f9b6f6 (diff) | |
download | slackbuilds-d2ccefdfd7c2c454670b37581c88279d325eb70c.tar.gz |
development/latrace: Re-Added after current update.
Revert "development/latrace: Removed (no longer build)."
This reverts commit cf2b7d3ac0323cbed0a3fe04bcff6c206e3a96a3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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..a7f4b1fde0 --- /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.d/latrace.conf.new + |