3 # Copyright (c) 2012, 2014. The SimGrid Team.
6 # This program is free software; you can redistribute it and/or modify it
7 # under the terms of the license (GNU LGPL) which comes with this package.
12 die "Usage: perl make_tesh.pl <directory> <old.tesh>\n";
15 my($directory)=$ARGV[0];
20 open SH_LIGNE, $old or die "Unable to open $old. $!\n";
27 while(defined($line=<SH_LIGNE>))
29 if($line =~ /^\$(.*)$/)
32 $line =~ s/\$\{srcdir\:\=\.\}/./g;
35 $line =~ s/\$SG_TEST_EXENV//g;
36 $line =~ s/\$EXEEXT//g;
37 $line =~ s/^\$\ */.\//g;
38 $line =~ s/^.\/lua/lua/g;
39 $line =~ s/^.\/ruby/ruby/g;
40 $line =~ s/--log=([^ ]*)/--log="$1"/g;
43 open (FILE, "$line 2>&1|");
44 while(defined($l=<FILE>))
53 if($line =~ /^\>(.*)$/)