# HG changeset patch # User Dario Sestito # Date 1254834124 -3600 # Node ID 022273556ac90b976e74b74c7f79eb05da43a38a # Parent 01511de51fcda7b0fdebc7e88170a64b15d03101# Parent 3489a650c6fa2a5822948fe816ca41f4e759c12e Merge diff -r 01511de51fcd -r 022273556ac9 common/build.xml --- a/common/build.xml Tue Oct 06 13:02:58 2009 +0100 +++ b/common/build.xml Tue Oct 06 14:02:04 2009 +0100 @@ -191,25 +191,35 @@ - + [SF-PREBUILD] + + + + + + [SF-DIAMONDS-CONNECT] + + + + + + [SF-DIAMONDS-TAG-BUILD] - - - - - - ant: antProperties() - - + + + + + + diff -r 01511de51fcd -r 022273556ac9 common/diamonds/sf-tag-build.xml.ftl --- a/common/diamonds/sf-tag-build.xml.ftl Tue Oct 06 13:02:58 2009 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ - - - - 10 - - ${ant['sf.spec.publish.diamonds.tag']} - - \ No newline at end of file diff -r 01511de51fcd -r 022273556ac9 common/tools/generate_diamonds_tags_xml.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/common/tools/generate_diamonds_tags_xml.pl Tue Oct 06 14:02:04 2009 +0100 @@ -0,0 +1,54 @@ +#! perl -w +# Copyright (c) 2009 Symbian Foundation Ltd +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Symbian Foundation Ltd - initial contribution. +# +# Contributors: +# +# Description: +# Generate an XML file in the Diamonds format to upload build tags to Diamonds + +use strict; + +use Getopt::Long; + +my $taglist = 0; +my $outputfile = 0; +my $help = 0; +GetOptions(( + 'tags:s' => \$taglist, + 'output:s' => \$outputfile, + 'help!' => \$help, +)); + +if ($help or !$outputfile) +{ + print "Usage: perl generate_diamonds_tags_xml.pl --tags COMMA_SEPARATED_TAG_LIST --output OUTPUT_FILE\n"; +} + +open(FILE, ">$outputfile"); + +print FILE <<_END_HEADER; + + + 13 + +_END_HEADER + +my @tags = split(/,/, $taglist); +for (@tags) +{ + print FILE " $_\n"; +} + +print FILE <<_END_TRAILER; + + +_END_TRAILER + +close(FILE);