# HG changeset patch # User Simon Howkins # Date 1247661058 -3600 # Node ID cfde8b1784f7483d4518f6bbf7b2f80455d04043 # Parent 4f2482f1dd48f8747b6d9dbb12736c719eb2a29d Simplified the locations of some generated files, so they are created where they need to be rather than created on one place and moved to another. Zipping of binaries now assumes that there's always an rnd exclude file, as it is always created by populateziptemplate.pl, even if there's nothing put into it. diff -r 4f2482f1dd48 -r cfde8b1784f7 common/build.xml --- a/common/build.xml Tue Jul 14 10:47:57 2009 +0100 +++ b/common/build.xml Wed Jul 15 13:30:58 2009 +0100 @@ -545,6 +545,7 @@ + @@ -564,58 +565,34 @@ - - - - - - + + + + + + - - - - - - - + + - + - - - - - - - - - - - - - - - - + + + - - - - - - diff -r 4f2482f1dd48 -r cfde8b1784f7 common/tools/populateziptemplate.pl --- a/common/tools/populateziptemplate.pl Tue Jul 14 10:47:57 2009 +0100 +++ b/common/tools/populateziptemplate.pl Wed Jul 15 13:30:58 2009 +0100 @@ -25,7 +25,8 @@ my $sourcesCSV = shift or die "First arg must be source csv file"; my $template = shift or die "Second arg must be template file"; my $ftl = shift or die "Third arg must be output file"; -shift and die "No more than three arguments please"; +my $rndExcludes = shift or die "Fourth arg must be rnd-excludes file"; +shift and die "No more than four arguments please"; # Load CSV open my $csvText, "<", $sourcesCSV or die; @@ -141,6 +142,6 @@ $xml->XMLout($zipConfig, OutputFile => $ftl, XMLDecl => 1, RootName => 'build', KeyAttr => $keyAttr); # Output all rnd files into exclude list for later -open FILE, "> rnd_excludefile.txt" or die "Cannot write exludefile!"; -print FILE @allRndFiles; -close FILE; \ No newline at end of file +open my $fh, ">", $rndExcludes or die "Cannot write exlude file!"; +print $fh @allRndFiles; +close $fh;