From: Arnaud Giersch Date: Mon, 28 Oct 2013 10:24:38 +0000 (+0100) Subject: Tesh sort removes empty lines, do it also with tesh.pl. X-Git-Tag: v3_10_rc1~61 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4769d8706e26f5ed32cc4c4fad0e2589c795f886?ds=sidebyside Tesh sort removes empty lines, do it also with tesh.pl. --- diff --git a/buildtools/Cmake/Scripts/tesh.pl b/buildtools/Cmake/Scripts/tesh.pl index 164ff0cb03..e103a8f5a4 100755 --- a/buildtools/Cmake/Scripts/tesh.pl +++ b/buildtools/Cmake/Scripts/tesh.pl @@ -310,9 +310,16 @@ sub parse_out { } use sort 'stable'; @got = sort mysort @got; + while (@got and $got[0] eq "") { + shift @got; + } + #also resort the other one, as perl sort is not the same as the C one used to generate teshes if(defined($cmd{'out'})){ @{$cmd{'out'}}=sort mysort @{$cmd{'out'}}; + while (@{$cmd{'out'}} and ${$cmd{'out'}}[0] eq "") { + shift @{$cmd{'out'}}; + } } }