# HG changeset patch # User Simon Howkins # Date 1253093249 -3600 # Node ID 1ba3c86ebec05293c51e9aba727aef0a7f704d57 # Parent bb24766fdbdc5d9aabe2ee846d4c56cbec5a4f2f Bug 350 RnD binary zips missing all content outside epoc32 tree Removed confusing system of *_includefiles.txt appearing in the root of the build drive Also improved generation of release zips and release_metadata.xml to reduce overheads of copying and tweaking for release diff -r bb24766fdbdc -r 1ba3c86ebec0 common/build.postbuild.xml --- a/common/build.postbuild.xml Tue Sep 15 12:26:53 2009 +0100 +++ b/common/build.postbuild.xml Wed Sep 16 10:27:29 2009 +0100 @@ -228,19 +228,10 @@ - - - - - - - - - - - - - + + + + @@ -249,7 +240,6 @@ - diff -r bb24766fdbdc -r 1ba3c86ebec0 common/build.xml --- a/common/build.xml Tue Sep 15 12:26:53 2009 +0100 +++ b/common/build.xml Wed Sep 16 10:27:29 2009 +0100 @@ -442,7 +442,8 @@ - + + @@ -451,7 +452,7 @@ - + @@ -475,6 +476,14 @@ + + + + + + + + diff -r bb24766fdbdc -r 1ba3c86ebec0 common/templates/zip.cfg.xml.ftl.template --- a/common/templates/zip.cfg.xml.ftl.template Tue Sep 15 12:26:53 2009 +0100 +++ b/common/templates/zip.cfg.xml.ftl.template Wed Sep 16 10:27:29 2009 +0100 @@ -19,7 +19,7 @@ - + @@ -34,17 +34,16 @@ - - - + - + + @@ -96,6 +95,15 @@ + + + + + + + + + @@ -106,5 +114,10 @@ + + + + + diff -r bb24766fdbdc -r 1ba3c86ebec0 common/tools/populateziptemplate.pl --- a/common/tools/populateziptemplate.pl Tue Sep 15 12:26:53 2009 +0100 +++ b/common/tools/populateziptemplate.pl Wed Sep 16 10:27:29 2009 +0100 @@ -100,14 +100,18 @@ elsif ($package->{source} =~ m{/rnd/([^/]+)/([^/]+)}) { # RnD repository + my $licenseType = $1; my $name="bin_$1_$2"; - if ($1 eq "internal") + my $postbuildName = "binaries_$2"; + my $config = "rnd"; + if ($licenseType eq "internal") { - $name = "binaries_$2"; + $name = "binaries_$2_prebuild"; + $config = "rnd-internal"; } # Create a zip object - push @{$zipConfig->{config}->{config}->{src}->{config}->{rnd}->{config}}, + push @{$zipConfig->{config}->{config}->{$config}->{config}}, { set => [ @@ -128,19 +132,33 @@ # Enumerate all the files on the local disk that are in this repository (my $dosCompatibleDst = $package->{dst}) =~ s{/}{\\}g; my @files = `dir /b/s/a-d $dosCompatibleDst 2> nul:`; - #print "@files\n"; next unless @files; - # Add the files to this zip object + # Add the files to the global list of items to be excluded in the binary zips @files = grep { + chomp; s{\\}{/}g; s!^[A-Z]:/$package->{dst}/!!i; m{^epoc32/}i; } @files; push @allRndFiles, @files; - - open FILE, ">", $name ."_includefile.txt" or die "Cannot write includefile!"; - print FILE @files; - close FILE; + + if ($licenseType eq "internal") + { + # Add a zip object to zip this package from the epoc tree in the postbuild phase + push @{$zipConfig->{config}->{config}->{"rnd-postbuild"}->{config}}, + { + name => $postbuildName, + set => + [ + { + name => "name", + value=> $postbuildName, + }, + # Turn the array of files into an array of inclusion hashes + (map { {name => "include", value => $_ } } @files), + ] + }; + } } else { diff -r bb24766fdbdc -r 1ba3c86ebec0 common/tools/zip_includefiles.pl --- a/common/tools/zip_includefiles.pl Tue Sep 15 12:26:53 2009 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -#!perl -w - -use strict; - -my @includefiles = glob "*_includefile.txt"; -foreach (@includefiles) -{ - my $includefilename=$_; - if (m/(.*)(_includefile.txt)/) { - my $zipfilename = $1.".zip"; - system("7za a -tzip -i@".$includefilename . " " .$zipfilename); - } -} \ No newline at end of file