]> AND Private Git Repository - loba.git/blobdiff - colorized-loba
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Document a bug with parallel executions.
[loba.git] / colorized-loba
index 6abc53cdd018e14d34c796bf75a345c66a208d51..325a2d8212add586ad64761c0c8f518224642bbb 100755 (executable)
@@ -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