# HG changeset patch # User Simon Howkins # Date 1241529715 -3600 # Node ID fcf94a72b33efdb388cce1d0cff8de4d7376e9c6 # Parent add0abfa23717ce5b72ab01933c8e02eba8b0f1c Improved zip template generation script, to take a third argument for the required location of the output file. Updated build script to supply third argument. Standardised indentation in build.xml - 4 columns; no tabs. diff -r add0abfa2371 -r fcf94a72b33e common/build.xml --- a/common/build.xml Tue May 05 13:26:31 2009 +0100 +++ b/common/build.xml Tue May 05 14:21:55 2009 +0100 @@ -33,10 +33,10 @@ - + - - + + @@ -141,19 +141,19 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -164,133 +164,132 @@ - - [SF-POSTBUILD] + + [SF-POSTBUILD] + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + - - - - - - - - - - + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + [SF-BUILD-NOPREP] - - - - - - - - - - - + + + + + + + + + + + + - - - - + + @@ -304,58 +303,58 @@ - - - - ant: antProperties() - data: csv(${sf.project.location}/${sf.spec.sourcesync.sourcespecfile}, {separator:','}) - - - + + + + ant: antProperties() + data: csv(${sf.project.location}/${sf.spec.sourcesync.sourcespecfile}, {separator:','}) + + + - - - ant: antProperties() - config: csv(${build.drive}/output/logs/BOM/config.csv,{separator:',',headers:[loc,dst,rev]}) - project: csv(${build.drive}/output/logs/BOM/project.csv,{separator:',',headers:[loc,dst,rev]}) - baseline: slicedText(${build.drive}/output/logs/BOM/baseline.txt,{trim}) - sources: csv(${build.drive}/output/logs/BOM/sources.csv,{separator:',',headers:[loc,dst,rev]}) - - + + + ant: antProperties() + config: csv(${build.drive}/output/logs/BOM/config.csv,{separator:',',headers:[loc,dst,rev]}) + project: csv(${build.drive}/output/logs/BOM/project.csv,{separator:',',headers:[loc,dst,rev]}) + baseline: slicedText(${build.drive}/output/logs/BOM/baseline.txt,{trim}) + sources: csv(${build.drive}/output/logs/BOM/sources.csv,{separator:',',headers:[loc,dst,rev]}) + + - + - - - + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - diff -r add0abfa2371 -r fcf94a72b33e common/tools/populateziptemplate.pl --- a/common/tools/populateziptemplate.pl Tue May 05 13:26:31 2009 +0100 +++ b/common/tools/populateziptemplate.pl Tue May 05 14:21:55 2009 +0100 @@ -4,14 +4,12 @@ use Text::CSV; require XML::Simple; -# Raw inputs (should probably come in as parameters to the script) +# Raw inputs come in as parameters to the script +# TODO: Use a proper option parsing module my $sourcesCSV = shift or die "First arg must be source csv file"; my $template = shift or die "Second arg must be template file"; - -# Derived values -my ($ftl) = $template =~ m{(.*)\.template$}; -#$ftl =~ m{[^/\\]+$}; -#$ftl = $1; +my $ftl = shift or die "Third arg must be output file"; +shift and die "No more than three arguments please"; # Load CSV open my $csvText, "<", $sourcesCSV or die;