From 3279ab2b7019f7a6fef52acab4fc6fffcc73e3fe Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 21 Dec 2014 09:44:11 +0700 Subject: development/ltrace: Added (library call trace utility). Signed-off-by: Willy Sudiarto Raharjo --- development/ltrace/doinst.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 development/ltrace/doinst.sh (limited to 'development/ltrace/doinst.sh') 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 -- cgit v1.2.3