From: Arnaud Giersch Date: Sun, 3 Mar 2013 15:31:34 +0000 (+0100) Subject: Don't abort when nb == 0. X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba-papers.git/commitdiff_plain/242a30e8605acd45f545de213073de8f0c021f1a?ds=sidebyside Don't abort when nb == 0. --- diff --git a/supercomp11/data/interactive_plot b/supercomp11/data/interactive_plot index b61b0c0..645880b 100755 --- a/supercomp11/data/interactive_plot +++ b/supercomp11/data/interactive_plot @@ -13,6 +13,16 @@ toclean+=( $tmpA ) tmpB=$(mktemp) toclean+=( $tmpB ) +debug=0 +if [ "$1" = "-d" ]; then + debug=1 + shift +fi + +if_debug() { + [ $debug = 1 ] && eval "$@" +} + RE=${1:-_R[1N]_} grep -e "$RE" alldata > $tmpA @@ -51,12 +61,14 @@ $0 ~ re { } ' \ > $tmpB + title="results_${type}_${ratio}/plat_${platf}/topo_${topo}" if [ ! -s $tmpB ]; then + if_debug echo "... skip: $title" continue fi - title="results_${type}_${ratio}/plat_${platf}/topo_${topo}" echo "===[ $title ]===" - nb=$(expr $(grep -c ^algo $tmpB) - 1) + if_debug cat $tmpB + nb=$(expr $(grep -c ^algo $tmpB) - 1) || true if true; then ### show conv max gnuplot \