diff options
author | Adrian Kummerlaender | 2015-12-24 14:08:37 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2015-12-24 14:08:37 +0100 |
commit | a8db66ab7c34199222c520e6cad63d8de3d04190 (patch) | |
tree | 3adf5c3223880e3ff21501cfeb94ab0f549cacd9 | |
parent | c2af553b1c2de9fb158a70c5858d9c7fa527f9ee (diff) | |
download | change-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-x | change | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |