Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
new attempt
authorAugustin Degomme <degomme@idpann.imag.fr>
Fri, 4 Oct 2013 13:46:58 +0000 (15:46 +0200)
committerAugustin Degomme <degomme@idpann.imag.fr>
Fri, 4 Oct 2013 13:49:45 +0000 (15:49 +0200)
buildtools/Cmake/Scripts/tesh.pl

index c4d9722..31acb42 100755 (executable)
@@ -392,9 +392,6 @@ LINE: while (not $finished and not $error) {
 
   $line_num++;
   chomp $line;
-  if($line!=~/\s/){
-    next LINE;
-  }
   print "[TESH/debug] $line_num: $line\n" if $opts{'debug'};
   my $next;
   # deal with line continuations
@@ -409,7 +406,7 @@ LINE: while (not $finished and not $error) {
   }
 
   # Push delayed commands on empty lines
-  unless ($line =~ m/^(.)\s*(.*)$/) {
+  unless ($line =~ m/^(.).(.*)$/) {
     if (defined($cmd{'cmd'})) {
       exec_cmd(\%cmd);
       %cmd = ();