A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
convert svn logs into ChangeLog (up to r7858 for now)
[simgrid.git]
/
tools
/
simgrid_update_xml.pl
diff --git
a/tools/simgrid_update_xml.pl
b/tools/simgrid_update_xml.pl
index
226d849
..
2ca57b9
100755
(executable)
--- a/
tools/simgrid_update_xml.pl
+++ b/
tools/simgrid_update_xml.pl
@@
-1,7
+1,7
@@
#! /usr/bin/perl
# This script updates the simgrid XML file passed as argument (modification in place)
#! /usr/bin/perl
# This script updates the simgrid XML file passed as argument (modification in place)
-# It is built to do the conversion incrementally
(even if for now, only 2 versions are defined)
+# It is built to do the conversion incrementally
.
# Copyright (C) 2006-2010. The SimGrid team. All rights reserved.
#
# Copyright (C) 2006-2010. The SimGrid team. All rights reserved.
#
@@
-72,14
+72,12
@@
while (defined($line = <INPUT>)) {
}
if ($fromversion < 3) {
}
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;
$line =~ s/\blink:ctn\b/link_ctn/g;
$line =~ s/\btrace:connect\b/trace_connect/g;
+ $line =~ s/^(.*)<\/platform>(.*)$/ <\/AS>\n<\/platform>/;
}
}
+
+ $output_string .= "$line\n";
}
close INPUT;
}
close INPUT;