X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/27b0c1ee1d85c53f1d11bb2b8e539cd76e4cf437..1fd762bbcbc15aa4ffafe2d15df5cb650d1fa1ff:/tools/simgrid_update_xml.pl diff --git a/tools/simgrid_update_xml.pl b/tools/simgrid_update_xml.pl index 7b3ceb7781..31dd44d414 100755 --- 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. -# Copyright (c) 2006-2016. The SimGrid Team. +# Copyright (c) 2006-2019. The SimGrid Team. # All rights reserved. # # This program is free software; you can redistribute it and/or modify it @@ -103,7 +103,7 @@ In , attribute kind="POWER" is now kind="SPEED". =item -The DOCTYPE points to the right URL: http://simgrid.gforge.inria.fr/simgrid/simgrid.dtd +The DOCTYPE points to the right URL. =item @@ -123,7 +123,7 @@ Units are now mandatory in attributes. USE THE SCRIPT sg_xml_unit_converter.py T =back -=item B Introduced in SimGrid 3.16 (this is the current version) +=item B Introduced in SimGrid 3.16 (this is the current version). =over 4 @@ -146,6 +146,10 @@ Rename a few tags, but in a backward-compatible manner: the old names are still Rename the FULLDUPLEX sharing into SPLITDUPLEX. +=item + +In and , rename the 'availability_file' atribute into 'speed_file'. + =back =back @@ -156,7 +160,7 @@ Rename the FULLDUPLEX sharing into SPLITDUPLEX. =head1 COPYRIGHT AND LICENSE -Copyright (c) 2006-2018. The SimGrid Team. All rights reserved. +Copyright (c) 2006-2019. 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. @@ -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 = "\n". - "\n". + "\n". "\n"; my($AS_opened)=0; @@ -257,6 +261,7 @@ while (defined($line = )) { $line =~ s/\bprocess\b/actor/g; } $line =~ s/\bFULLDUPLEX\b/SPLITDUPLEX/g; + $line =~ s/\bavailability_file\b/speed_file/g; $output_string .= "$line\n"; }