X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2d98a6a519abb6a9799c26bb4a87225936944c42..054d8100281e084acb9d8041999ba6c8b2da9b20:/buildtools/Cmake/tesh.pl diff --git a/buildtools/Cmake/tesh.pl b/buildtools/Cmake/tesh.pl index 3b185ba80c..8de3293f0b 100755 --- a/buildtools/Cmake/tesh.pl +++ b/buildtools/Cmake/tesh.pl @@ -8,10 +8,13 @@ my($line2); my($execline); my($ok)=0; my($ok1)=0; +my($sort)=0; my($nb_arg)=0; my($result); my(@list1)=(); my(@list2)=(); +my(@list3)=(); +my(@buffer)=(); #options do{ @@ -56,10 +59,23 @@ if(!$ARGV[$nb_arg]){die "tesh.pl \n";} print "-- Tesh load file : $ARGV[$nb_arg]\n"; my($file)=$ARGV[$nb_arg]; open SH_LIGNE, $file or die "Unable to open $file. $!\n"; -print "\n"; + while(defined($line1=)) { - if($line1 =~ /^\$/){ #command line + if($line1 =~ /^\$ mkfile/){ #command line + $line1 =~ s/\$ //g; + chomp $line1; + print "-- Tesh exec_line : $line1\n"; + $line1 =~ s/mkfile//g; + `rm -f $line1`; + foreach(@buffer) + { + `echo $_ >> $line1`; + } + $execline = $line1; + @buffer = (); + } + elsif($line1 =~ /^\$/){ #command line $ok = 1; $line1 =~ s/\$\{srcdir\:\=\.\}/./g; $line1 =~ s/\$SG_TEST_EXENV//g; @@ -86,16 +102,48 @@ while(defined($line1=)) chomp $line1; push @list2, $line1; } + elsif($line1 =~ /^\