More buildrom.pm tweaks
authorWilliam Roberts <williamr@symbian.org>
Fri, 08 Oct 2010 17:25:30 +0100
changeset 3 df09f0d786ec
parent 2 a008c700a637
child 4 f2eed505287b
More buildrom.pm tweaks - fix the stupid "REM handled x" on every input line - Create extra copies of the tmp files, so that iMaker can't clean them all away - Add "REM expanded" to the original processing of ECOM_PLUGIN lines, to help recover the originals again
syborg_stem/buildrom.pm
--- a/syborg_stem/buildrom.pm	Thu Oct 07 21:53:03 2010 +0100
+++ b/syborg_stem/buildrom.pm	Fri Oct 08 17:25:30 2010 +0100
@@ -1735,6 +1735,9 @@
 		print DUMPFILE $line;
 	}
 	close DUMPFILE;
+	open SLY_COPY, ">xxx_$dumpfile";
+	print SLY_COPY @obydata;
+	close SLY_COPY;
 }
 
 sub track_source
@@ -2070,7 +2073,7 @@
 			# push this line into the currently selected partition
 			my $partition=@currentpartition[-1];
 			push @$partition, $modifiedLine;
-			$line="REM handled $line";
+			next; 
 		}
 		elsif ($line =~ /^\s*SPI_POSITION/i)
 		{
@@ -2217,6 +2220,7 @@
 		      $errors++ if ($strict);
 		    }
 
+		    push @newobydata, "REM expanded $line";
 		    if ($spidatahide)
 		    {
 			push @newobydata, "hide=$fileRomDir\\$pluginFileName\n";