X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bd99b1d06dd70aa739697de68cd200bd3ea54246..a77b8884fa58cf932bad343ff7141233d088b95d:/tools/simgrid_update_xml.pl diff --git a/tools/simgrid_update_xml.pl b/tools/simgrid_update_xml.pl index 24ff690fe1..171bdc2db3 100755 --- a/tools/simgrid_update_xml.pl +++ b/tools/simgrid_update_xml.pl @@ -71,10 +71,12 @@ while (defined($line = )) { $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"; + } } }