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
Cope with Eigen 3.3.4 directly in cmake
[simgrid.git]
/
tools
/
simgrid_update_xml.pl
diff --git
a/tools/simgrid_update_xml.pl
b/tools/simgrid_update_xml.pl
index 6cd86c2c6e141d0c381716ac2676a7198d81ba3c..daea1f0eb0596db168df0b18cbe646b5b31ec38a 100755
(executable)
--- a/
tools/simgrid_update_xml.pl
+++ b/
tools/simgrid_update_xml.pl
@@
-5,7
+5,7
@@
eval 'exec perl -S $0 ${1+"$@"}'
# This script updates the simgrid XML file passed as argument (modification in place)
# It is built to do the conversion incrementally.
# This script updates the simgrid XML file passed as argument (modification in place)
# It is built to do the conversion incrementally.
-# Copyright (c) 2006-20
18
. The SimGrid Team.
+# Copyright (c) 2006-20
22
. The SimGrid Team.
# All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
@@
-103,7
+103,7
@@
In <trace_connect>, attribute kind="POWER" is now kind="SPEED".
=item
=item
-The DOCTYPE points to the right URL
: http://simgrid.gforge.inria.fr/simgrid/simgrid.dtd
+The DOCTYPE points to the right URL
.
=item
=item
@@
-123,7
+123,7
@@
Units are now mandatory in attributes. USE THE SCRIPT sg_xml_unit_converter.py T
=back
=back
-=item B<Version 4.1:> Introduced in SimGrid 3.16 (this is the current version)
+=item B<Version 4.1:> Introduced in SimGrid 3.16 (this is the current version)
.
=over 4
=over 4
@@
-146,17
+146,21
@@
Rename a few tags, but in a backward-compatible manner: the old names are still
Rename the FULLDUPLEX sharing into SPLITDUPLEX.
Rename the FULLDUPLEX sharing into SPLITDUPLEX.
+=item
+
+In <host> and <peer>, rename the 'availability_file' attribute into 'speed_file'.
+
=back
=back
=head1 AUTHORS
=back
=back
=head1 AUTHORS
- The SimGrid team
(simgrid-devel@lists.gforge.inria.fr)
+ The SimGrid team
=head1 COPYRIGHT AND LICENSE
=head1 COPYRIGHT AND LICENSE
-Copyright (c) 2006-20
18
. The SimGrid Team. All rights reserved.
+Copyright (c) 2006-20
22
. The SimGrid Team. All rights reserved.
This program is free software; you may redistribute it and/or modify it
under the terms of GNU LGPL (v2.1) license.
This program is free software; you may redistribute it and/or modify it
under the terms of GNU LGPL (v2.1) license.
@@
-173,7
+177,7
@@
my $filename = $ARGV[0] or die "Usage: simgrid_update_xml.pl file_to_convert.xml
open INPUT, "$filename" or die "Cannot open input file $filename: $!\n";
my $output_string = "<?xml version='1.0'?>\n".
open INPUT, "$filename" or die "Cannot open input file $filename: $!\n";
my $output_string = "<?xml version='1.0'?>\n".
- "<!DOCTYPE platform SYSTEM \"http
://simgrid.gforge.inria.fr/simgrid
/simgrid.dtd\">\n".
+ "<!DOCTYPE platform SYSTEM \"http
s://simgrid.org
/simgrid.dtd\">\n".
"<platform version=\"$toversion\">\n";
my($AS_opened)=0;
"<platform version=\"$toversion\">\n";
my($AS_opened)=0;
@@
-243,11
+247,11
@@
while (defined($line = <INPUT>)) {
$output_string .= " <AS id=\"AS0\" routing=\"Full\">\n";
$AS_opened=1;
}
$output_string .= " <AS id=\"AS0\" routing=\"Full\">\n";
$AS_opened=1;
}
-
+
if($line=~/<route /){$line =~ s/\<route/\<route symmetrical=\"NO\"/g;}
}
if ($fromversion < 4) {
if($line=~/<route /){$line =~ s/\<route/\<route symmetrical=\"NO\"/g;}
}
if ($fromversion < 4) {
- $line =~ s/\bpower\b/speed/g;
+ $line =~ s/\bpower\b/speed/g;
$line =~ s/\bkind="POWER"/kind="SPEED"/g;
}
if ($fromversion < 4.1) {
$line =~ s/\bkind="POWER"/kind="SPEED"/g;
}
if ($fromversion < 4.1) {
@@
-257,7
+261,8
@@
while (defined($line = <INPUT>)) {
$line =~ s/\bprocess\b/actor/g;
}
$line =~ s/\bFULLDUPLEX\b/SPLITDUPLEX/g;
$line =~ s/\bprocess\b/actor/g;
}
$line =~ s/\bFULLDUPLEX\b/SPLITDUPLEX/g;
-
+ $line =~ s/\bavailability_file\b/speed_file/g;
+
$output_string .= "$line\n";
}
$output_string .= "$line\n";
}