1
<?xml version="1.0"?><!--*- mode: nxml -*-->
2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
4
<xsl:template match="cvsroot">
5
<repository type="cvs" name="{@name}" cvsroot="{@root}">
6
<xsl:if test="@password"><xsl:copy-of select="@password" /></xsl:if>
7
<xsl:if test="@default"><xsl:copy-of select="@default" /></xsl:if>
11
<xsl:template match="svnroot">
12
<repository type="svn" name="{@name}" href="{@href}">
13
<xsl:if test="@default"><xsl:copy-of select="@default" /></xsl:if>
17
<xsl:template match="arch-archive">
18
<repository type="arch" name="{@name}" href="{@href}">
19
<xsl:if test="@default"><xsl:copy-of select="@default" /></xsl:if>
23
<xsl:template match="cvsmodule">
25
<xsl:attribute name="id">
28
<xsl:value-of select="@id"/>
30
<xsl:when test="@checkoutdir">
31
<xsl:value-of select="@id"/>
34
<xsl:value-of select="@module"/>
38
<xsl:if test="@autogenargs">
39
<xsl:copy-of select="@autogenargs" />
41
<xsl:if test="@makeargs">
42
<xsl:copy-of select="@makeargs" />
44
<xsl:if test="@supports-non-srcdir-builds">
45
<xsl:copy-of select="@supports-non-srcdir-builds" />
47
<xsl:text>
 </xsl:text>
49
<xsl:if test="@cvsroot">
50
<xsl:attribute name="repo">
51
<xsl:value-of select="@cvsroot"/>
55
<xsl:attribute name="repo">
56
<xsl:value-of select="@root"/>
59
<xsl:if test="@module"><xsl:copy-of select="@module" /></xsl:if>
60
<xsl:if test="@revision"><xsl:copy-of select="@revision" /></xsl:if>
61
<xsl:if test="@checkoutdir"><xsl:copy-of select="@checkoutdir" /></xsl:if>
63
<xsl:apply-templates select="node()"/>
67
<xsl:template match="svnmodule">
68
<autotools id="{@id}">
69
<xsl:if test="@autogenargs">
70
<xsl:copy-of select="@autogenargs" />
72
<xsl:if test="@makeargs">
73
<xsl:copy-of select="@makeargs" />
75
<xsl:if test="@supports-non-srcdir-builds">
76
<xsl:copy-of select="@supports-non-srcdir-builds" />
78
<xsl:text>
 </xsl:text>
81
<xsl:attribute name="repo">
82
<xsl:value-of select="@root"/>
85
<xsl:if test="@module"><xsl:copy-of select="@module" /></xsl:if>
86
<xsl:if test="@checkoutdir"><xsl:copy-of select="@checkoutdir" /></xsl:if>
88
<xsl:apply-templates select="node()"/>
92
<xsl:template match="archmodule">
93
<autotools id="{@id}">
94
<xsl:if test="@autogenargs">
95
<xsl:copy-of select="@autogenargs" />
97
<xsl:if test="@makeargs">
98
<xsl:copy-of select="@makeargs" />
100
<xsl:if test="@supports-non-srcdir-builds">
101
<xsl:copy-of select="@supports-non-srcdir-builds" />
103
<xsl:text>
 </xsl:text>
105
<xsl:if test="@root">
106
<xsl:attribute name="repo">
107
<xsl:value-of select="@root"/>
110
<xsl:if test="@version">
111
<xsl:attribute name="module">
112
<xsl:value-of select="@version"/>
115
<xsl:if test="@checkoutdir"><xsl:copy-of select="@checkoutdir" /></xsl:if>
117
<xsl:apply-templates select="node()"/>
121
<xsl:template match="suggests">
123
<xsl:apply-templates select="node()"/>
127
<xsl:template match="node()" priority="-1">
129
<xsl:copy-of select="@*" />
130
<xsl:apply-templates select="node()"/>