X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/ef5d9613299a5a47244f7edec76d0dfc70edfddc..92739e09e571752f0ce2f6fb0a22beccf25524cf:/colorized-loba diff --git a/colorized-loba b/colorized-loba index 6abc53c..325a2d8 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:-./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