From: Martin Quinson Date: Thu, 23 Jun 2016 08:58:05 +0000 (+0200) Subject: accept single quotes while converting the XML files X-Git-Tag: v3_14~886 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5ee23970780a802b53a76ca272464a462223e7e8 accept single quotes while converting the XML files --- diff --git a/tools/simgrid_update_xml.pl b/tools/simgrid_update_xml.pl index 6ed9d52be8..e9c639058b 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-2014. The SimGrid Team. +# Copyright (c) 2006-2016. The SimGrid Team. # All rights reserved. # # This program is free software; you can redistribute it and/or modify it @@ -164,7 +164,7 @@ while (defined($line = )) { $fromversion = 0; print "$filename was using version 0\n"; next if !$line =~ /\S/; - } elsif ($line =~ s///) { + } elsif ($line =~ s///) { $fromversion = $1; if ($fromversion == $toversion) { die "Input platform file $filename is already conformant to version $fromversion. This should be a no-op.\n";