]> git.saurik.com Git - wxWidgets.git/blame_incremental - build/buildbot/config/include/xp_vc.xml
even more interface fixes
[wxWidgets.git] / build / buildbot / config / include / xp_vc.xml
... / ...
CommitLineData
1<?xml version="1.0" encoding="utf-8"?>
2
3<!--
4 Name: include/xp_vc.xml
5 Purpose: Declarations for the xp_vc slave
6 Author: Michael Wetherell
7 RCS-ID: $Id$
8 Copyright: (c) 2008 Michael Wetherell
9 Licence: wxWidgets licence
10-->
11
12<bot xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
13 xmlns:xi="http://www.w3.org/2001/XInclude">
14
15<xi:include href="defs.xml"/>
16
17<!--
18 build - Override <build> to add a slave lock. This has the effect of
19 serialising all the builds on this machine
20-->
21<xsl:template name="build">
22 <xsl:param name="content"/>
23 <build>
24 <lock>slave</lock>
25 <xsl:copy-of select="$content"/>
26 </build>
27</xsl:template>
28
29<!--
30 checkout - checks out to a shared directory
31
32 Checks out to a directory '../$branch' shared between builds. Then exports
33 it to a clean 'build' directory for the job to build in. This relies on
34 builds for the same branch being serialised with a lock so that one build
35 doesn't update the shared source while another is exporting them.
36
37 Usage typically just:
38 <checkout/>
39 for the trunk, or:
40 <checkout branch="branches/WX_2_8_BRANCH"/>
41 to checkout a branch.
42-->
43<xsl:template name="checkout">
44 <xsl:param name="content"/>
45 <xsl:param name="branch" select="'trunk'"/>
46 <xsl:variable name="nodes" select="exsl:node-set($content)"/>
47 <svn>
48 <xsl:if test="not($nodes/svnurl)">
49 <xsl:if test="not($nodes/baseURL)">
50 <baseURL><SVN_URL/></baseURL>
51 </xsl:if>
52 <xsl:if test="not($nodes/defaultBranch)">
53 <defaultBranch><xsl:value-of select="$branch"/></defaultBranch>
54 </xsl:if>
55 </xsl:if>
56 <xsl:if test="not($nodes/workdir)">
57 <workdir>../<xsl:value-of select="$branch"/></workdir>
58 </xsl:if>
59 <xsl:copy-of select="$content"/>
60 </svn>
61 <shellcommand>
62 <description>creating build directory</description>
63 <descriptionDone>create build directory</descriptionDone>
64 <workdir>.</workdir>
65 <command>
66 <normalize-space>
67 (if exist build rmdir /s/q build) &amp;&amp;
68 svn export --native-eol CRLF
69 ..\<xsl:value-of select="$branch"/> build
70 </normalize-space>
71 </command>
72 </shellcommand>
73</xsl:template>
74
75</bot>