aboutsummaryrefslogtreecommitdiff
path: root/development/ltrace/doinst.sh
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2014-12-21 09:44:11 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-12-21 09:44:11 +0700
commit3279ab2b7019f7a6fef52acab4fc6fffcc73e3fe (patch)
tree1c9414fa4a18181c647ac220731abfd8d5451c55 /development/ltrace/doinst.sh
parent62b476dae607d3537201615b9f3f370fd8447384 (diff)
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.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/development/ltrace/doinst.sh b/development/ltrace/doinst.sh
new file mode 100644
index 000000000000..8ae1b913ceb7
--- /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