Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
protect the changes related to the v3 in an appropriate if bloc
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 30 Sep 2010 18:45:45 +0000 (18:45 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 30 Sep 2010 18:45:45 +0000 (18:45 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8308 48e7efb5-ca39-0410-a469-dd3cf9ba447f

tools/simgrid_update_xml.pl

index 24ff690..171bdc2 100755 (executable)
@@ -71,10 +71,12 @@ while (defined($line = <INPUT>)) {
        $line =~ s/\broute_element\b/link:ctn/g;
     }
     
        $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";
+       }
     }
 }
 
     }
 }