Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Indent the rest of the code (examples, buildtools, doc...) except for examples/SMPI...
[simgrid.git] / tools / simgrid_update_xml.pl
index 24ff690..226d849 100755 (executable)
@@ -71,10 +71,14 @@ while (defined($line = <INPUT>)) {
        $line =~ s/\broute_element\b/link:ctn/g;
     }
     
-    if($line =~ /^(.*)<\/platform>(.*)$/) {
-       $output_string .=  " <\/AS>\n<\/platform>";
-    } else {
-       $output_string .=  "$line\n";
+    if ($fromversion < 3)  {
+       if($line =~ /^(.*)<\/platform>(.*)$/) {
+           $output_string .=  " <\/AS>\n<\/platform>";
+       } else {
+           $output_string .=  "$line\n";
+       }
+       $line =~ s/\blink:ctn\b/link_ctn/g;
+       $line =~ s/\btrace:connect\b/trace_connect/g;
     }
 }