From afdb7494bc66453da2ee4203eba9dd531a35e22f Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Fri, 7 Jan 2011 09:14:25 +0100 Subject: [PATCH] Get simgrid installation path from binary. --- colorized-loba | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/colorized-loba b/colorized-loba index 6abc53c..1f20b07 100755 --- a/colorized-loba +++ b/colorized-loba @@ -1,3 +1,8 @@ #!/bin/sh -exec ./loba "$@" -v 2>&1 | ./simgrid-stable/bin/simgrid-colorizer - | less -R +loba=./loba +path=$(ldd "$loba" | sed '/libsimgrid/!d;s/.*=> \(.*\)\/lib\/libsimgrid.*/\1/') +: ${path:="./simgrid-stable"} +colorizer="$path/bin/simgrid-colorizer" + +exec "$loba" "$@" -v 2>&1 | "$colorizer" - | less -R -- 2.39.5