aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-12-24 14:08:37 +0100
committerAdrian Kummerlaender2015-12-24 14:08:37 +0100
commita8db66ab7c34199222c520e6cad63d8de3d04190 (patch)
tree3adf5c3223880e3ff21501cfeb94ab0f549cacd9
parentc2af553b1c2de9fb158a70c5858d9c7fa527f9ee (diff)
downloadchange-a8db66ab7c34199222c520e6cad63d8de3d04190.tar
change-a8db66ab7c34199222c520e6cad63d8de3d04190.tar.gz
change-a8db66ab7c34199222c520e6cad63d8de3d04190.tar.bz2
change-a8db66ab7c34199222c520e6cad63d8de3d04190.tar.lz
change-a8db66ab7c34199222c520e6cad63d8de3d04190.tar.xz
change-a8db66ab7c34199222c520e6cad63d8de3d04190.tar.zst
change-a8db66ab7c34199222c520e6cad63d8de3d04190.zip
Implement basic library usage helper
`change` calls the given command wrapped in `libChangeLog` and prints the recorded change log afterwards.
-rwxr-xr-xchange11
1 files changed, 11 insertions, 0 deletions
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