diff options
author | B. Watson <yalhcru@gmail.com> | 2014-12-21 09:44:11 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-12-21 09:44:11 +0700 |
commit | 3279ab2b7019f7a6fef52acab4fc6fffcc73e3fe (patch) | |
tree | 1c9414fa4a18181c647ac220731abfd8d5451c55 /development/ltrace/doinst.sh | |
parent | 62b476dae607d3537201615b9f3f370fd8447384 (diff) | |
download | slackbuilds-3279ab2b7019f7a6fef52acab4fc6fffcc73e3fe.tar.gz |
development/ltrace: Added (library call trace utility).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/ltrace/doinst.sh')
-rw-r--r-- | development/ltrace/doinst.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/development/ltrace/doinst.sh b/development/ltrace/doinst.sh new file mode 100644 index 0000000000..8ae1b913ce --- /dev/null +++ b/development/ltrace/doinst.sh @@ -0,0 +1,11 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + rm $NEW + fi +} + +config etc/ltrace.conf.new |