[2.28] branch gnome-themes
[jhbuild.git] / scripts / upgrade-module-set.xsl
blobff50ba816f238433deea91075382ce65076a7782
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>
8 </repository>
9 </xsl:template>
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>
14 </repository>
15 </xsl:template>
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>
20 </repository>
21 </xsl:template>
23 <xsl:template match="cvsmodule">
24 <autotools>
25 <xsl:attribute name="id">
26 <xsl:choose>
27 <xsl:when test="@id">
28 <xsl:value-of select="@id"/>
29 </xsl:when>
30 <xsl:when test="@checkoutdir">
31 <xsl:value-of select="@id"/>
32 </xsl:when>
33 <xsl:otherwise>
34 <xsl:value-of select="@module"/>
35 </xsl:otherwise>
36 </xsl:choose>
37 </xsl:attribute>
38 <xsl:if test="@autogenargs">
39 <xsl:copy-of select="@autogenargs" />
40 </xsl:if>
41 <xsl:if test="@makeargs">
42 <xsl:copy-of select="@makeargs" />
43 </xsl:if>
44 <xsl:if test="@supports-non-srcdir-builds">
45 <xsl:copy-of select="@supports-non-srcdir-builds" />
46 </xsl:if>
47 <xsl:text>&#x0a; </xsl:text>
48 <branch>
49 <xsl:if test="@cvsroot">
50 <xsl:attribute name="repo">
51 <xsl:value-of select="@cvsroot"/>
52 </xsl:attribute>
53 </xsl:if>
54 <xsl:if test="@root">
55 <xsl:attribute name="repo">
56 <xsl:value-of select="@root"/>
57 </xsl:attribute>
58 </xsl:if>
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>
62 </branch>
63 <xsl:apply-templates select="node()"/>
64 </autotools>
65 </xsl:template>
67 <xsl:template match="svnmodule">
68 <autotools id="{@id}">
69 <xsl:if test="@autogenargs">
70 <xsl:copy-of select="@autogenargs" />
71 </xsl:if>
72 <xsl:if test="@makeargs">
73 <xsl:copy-of select="@makeargs" />
74 </xsl:if>
75 <xsl:if test="@supports-non-srcdir-builds">
76 <xsl:copy-of select="@supports-non-srcdir-builds" />
77 </xsl:if>
78 <xsl:text>&#x0a; </xsl:text>
79 <branch>
80 <xsl:if test="@root">
81 <xsl:attribute name="repo">
82 <xsl:value-of select="@root"/>
83 </xsl:attribute>
84 </xsl:if>
85 <xsl:if test="@module"><xsl:copy-of select="@module" /></xsl:if>
86 <xsl:if test="@checkoutdir"><xsl:copy-of select="@checkoutdir" /></xsl:if>
87 </branch>
88 <xsl:apply-templates select="node()"/>
89 </autotools>
90 </xsl:template>
92 <xsl:template match="archmodule">
93 <autotools id="{@id}">
94 <xsl:if test="@autogenargs">
95 <xsl:copy-of select="@autogenargs" />
96 </xsl:if>
97 <xsl:if test="@makeargs">
98 <xsl:copy-of select="@makeargs" />
99 </xsl:if>
100 <xsl:if test="@supports-non-srcdir-builds">
101 <xsl:copy-of select="@supports-non-srcdir-builds" />
102 </xsl:if>
103 <xsl:text>&#x0a; </xsl:text>
104 <branch>
105 <xsl:if test="@root">
106 <xsl:attribute name="repo">
107 <xsl:value-of select="@root"/>
108 </xsl:attribute>
109 </xsl:if>
110 <xsl:if test="@version">
111 <xsl:attribute name="module">
112 <xsl:value-of select="@version"/>
113 </xsl:attribute>
114 </xsl:if>
115 <xsl:if test="@checkoutdir"><xsl:copy-of select="@checkoutdir" /></xsl:if>
116 </branch>
117 <xsl:apply-templates select="node()"/>
118 </autotools>
119 </xsl:template>
121 <xsl:template match="suggests">
122 <after>
123 <xsl:apply-templates select="node()"/>
124 </after>
125 </xsl:template>
127 <xsl:template match="node()" priority="-1">
128 <xsl:copy>
129 <xsl:copy-of select="@*" />
130 <xsl:apply-templates select="node()"/>
131 </xsl:copy>
132 </xsl:template>
134 </xsl:stylesheet>