Bug fix: romnibus.pl did not "unixify" the input bootbinary-line when necessary.
authorMike Kinghan <mikek@symbian.org>
Mon, 15 Nov 2010 08:19:08 +0000
changeset 38 620772202a07
parent 37 863e2b34c16d
child 39 fa9d7d89d3d6
Bug fix: romnibus.pl did not "unixify" the input bootbinary-line when necessary.
imgtools/romtools/rombuild/romnibus.pl
--- a/imgtools/romtools/rombuild/romnibus.pl	Thu Nov 04 09:28:30 2010 +0000
+++ b/imgtools/romtools/rombuild/romnibus.pl	Mon Nov 15 08:19:08 2010 +0000
@@ -650,7 +650,16 @@
 			elsif ($on_windows) {
 				$line =~ s|\/|\\|g;
 			}
+			elsif ($line =~ /(^bootbinary\s*=\s*${epocroot}epoc32)(\S+)$/) {
+				# unixify the bootbinary line
+				my $tail = $2;
+				$line =~ s|\\|\/|g;
+				$tail =~ s|\\|\/|g;
+				my $lc_tail = lc($tail);
+				$line =~ s|$tail|$lc_tail|;
+			}
 			elsif ($line =~ /^(\s*\S+\s*=\s*)(\S+)(\s*\S*)/) {
+				#unixify the lefthand sides of rom-mapping lines.
 				my $keyword_part = $1;
 				my $src = $2;
 				my $dest = $3;