From a77b8884fa58cf932bad343ff7141233d088b95d Mon Sep 17 00:00:00 2001 From: mquinson Date: Thu, 30 Sep 2010 18:45:45 +0000 Subject: [PATCH] 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 --- tools/simgrid_update_xml.pl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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"; + } } } -- 2.20.1