git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5824
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
open IN,$input || die "Cannot open $input: $!\n";
while (<IN>) {
open IN,$input || die "Cannot open $input: $!\n";
while (<IN>) {
- next unless /<cpu name="([^"]*)"/; # "
+ next unless /<host id="([^"]*)"/; # "
# and now, really generate the file. Receiver first.
print "<?xml version='1.0'?>\n";
# and now, really generate the file. Receiver first.
print "<?xml version='1.0'?>\n";
-print "<!DOCTYPE platform_description SYSTEM \"surfxml.dtd\">\n";
-print "<platform_description version=\"1\">\n\n";
+print "<!DOCTYPE platform SYSTEM \"simgrid.dtd\">\n";
+print "<platform version=\"2\">\n\n";
for my $r (@receivers) {
my ($h, $p) = split(':', $r);
for my $r (@receivers) {
my ($h, $p) = split(':', $r);
-print "</platform_description>\n";
# print "source='$source' nb_hosts=$nb_hosts\n";
# print "source='$source' nb_hosts=$nb_hosts\n";
# map { print "$_\n" } @host;
print "<?xml version='1.0'?>\n";
# map { print "$_\n" } @host;
print "<?xml version='1.0'?>\n";
-print "<!DOCTYPE platform SYSTEM \"surfxml.dtd\">\n";
+print "<!DOCTYPE platform SYSTEM \"simgrid.dtd\">\n";
print "<platform version=\"2\">\n\n";
print "<platform version=\"2\">\n\n";
open IN,$input || die "Cannot open $input: $!\n";
while (<IN>) {
open IN,$input || die "Cannot open $input: $!\n";
while (<IN>) {
- next unless /<cpu name="([^"]*)"/; # "
+ next unless /<host id="([^"]*)"/; # "
my $master = $host[0];
print "<?xml version='1.0'?>\n";
my $master = $host[0];
print "<?xml version='1.0'?>\n";
-print "<!DOCTYPE platform_description SYSTEM \"surfxml.dtd\">\n";
-print "<platform_description version=\"1\">\n\n";
+print "<!DOCTYPE platform SYSTEM \"simgrid.dtd\">\n";
+print "<platform version=\"2\">\n\n";
print " <!-- The master, argument :: port number -->\n";
print " <process host=\"$master\" function=\"master\">\n";
print " <argument value=\"$port_num\"/>\n";
print " <!-- The master, argument :: port number -->\n";
print " <process host=\"$master\" function=\"master\">\n";
print " <argument value=\"$port_num\"/>\n";
-print "</platform_description>\n";