From a8db66ab7c34199222c520e6cad63d8de3d04190 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 24 Dec 2015 14:08:37 +0100 Subject: Implement basic library usage helper `change` calls the given command wrapped in `libChangeLog` and prints the recorded change log afterwards. --- change | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 change diff --git a/change b/change new file mode 100755 index 0000000..04cae2f --- /dev/null +++ b/change @@ -0,0 +1,11 @@ +#!/usr/bin/bash + +export LD_PRELOAD=/usr/lib/libChangeLog.so +export CHANGE_LOG_TARGET="/tmp/$(basename $0).$$.tmp" + +eval "$1" + +export LD_PRELOAD="" + +cat $CHANGE_LOG_TARGET +rm -f $CHANGE_LOG_TARGET -- cgit v1.2.3