From: mquinson Date: Thu, 30 Sep 2010 18:45:45 +0000 (+0000) Subject: protect the changes related to the v3 in an appropriate if bloc X-Git-Tag: v3_5~516 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a77b8884fa58cf932bad343ff7141233d088b95d protect the changes related to the v3 in an appropriate if bloc git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8308 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- 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"; + } } }