summaryrefslogtreecommitdiff
path: root/poldek-dirdeps.patch
blob: 7922f80bf66abe635f4bf967e985359f9c4cc3ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
--- poldek-0.21-cvs20070703.00/doc/poldek.conf.xml~	2007-06-30 10:32:47.000000000 +0300
+++ poldek-0.21-cvs20070703.00/doc/poldek.conf.xml	2008-01-13 16:36:22.437311829 +0200
@@ -414,8 +414,10 @@
   <option name="dependency engine version" type="integer" default="2" hidden="yes">
   </option>
  
-  <option name="auto directory dependencies" type="boolean3" default="auto" op="AUTODIRDEP">
+  <option name="auto directory dependencies" type="boolean3" default="no" op="AUTODIRDEP">
+  <description>
   RPM 4.4.6 introduces auto dependencies based on package directories. Option controls this feature.
+  </description>
   </option>
   
   <option name="follow" type="boolean" default="yes" op="FOLLOW">
--- poldek/doc/Makefile.am~	2005-11-06 23:00:58.000000000 +0200
+++ poldek/doc/Makefile.am	2008-01-14 10:11:50.113470814 +0200
@@ -8,7 +8,7 @@
 
 # xml configuration description & co.
 CONFXMLS  = poldek.conf.xml conf-xml2.sh \
-			conf-xml2conf.xsl conf-xml2refentry.xsl conf-xml2docb.xsl
+			conf-xml2c.xsl conf-xml2conf.xsl conf-xml2refentry.xsl conf-xml2docb.xsl
 
 # manual sources 
 MANUALS   = manual.xml manual.css manual.xsl
--- /dev/null	2006-03-28 14:00:37.000000000 +0300
+++ poldek/doc/conf-xml2c.xsl	2005-11-01 21:08:20.000000000 +0200
@@ -0,0 +1,59 @@
+<xsl:stylesheet version="1.0" 
+		xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<!-- poldek.conf.xml -> conf_sections.c -->
+<!-- $Id$ -->
+
+<xsl:output method="text" indent="no" />
+<xsl:template match="/">
+/* This file is generated from poldek.conf.xml. Do not edit */
+#include &lt;stdlib.h&gt;
+#include "conf_intern.h"
+#include "poldek_ts.h"
+  <xsl:for-each select="config/confsection">
+static struct poldek_conf_tag <xsl:value-of select="@name"/>_tags[] = {
+      <xsl:for-each select="optiongroup">
+        <xsl:for-each select="option">
+   { "<xsl:value-of select="@name"/>", 
+     CONF_TYPE_<xsl:value-of select="translate(@type,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/> 
+             <xsl:if test="@multiple='yes'"> | CONF_TYPE_F_MULTI</xsl:if>
+             <xsl:if test="@required='yes'"> | CONF_TYPE_F_REQUIRED</xsl:if>
+             <xsl:if test="@env='yes'"> | CONF_TYPE_F_ENV</xsl:if>
+             <xsl:if test="@list='yes'"> | CONF_TYPE_F_LIST</xsl:if>
+             <xsl:if test="@path='yes'"> | CONF_TYPE_F_PATH</xsl:if>
+             <xsl:if test="@obsoleted='yes'"> | CONF_TYPE_F_OBSL</xsl:if>,
+             <xsl:choose>
+               <xsl:when test="string-length(@default) > 0">"<xsl:value-of select="@default"/>"</xsl:when>
+               <xsl:otherwise>NULL</xsl:otherwise>
+             </xsl:choose>,
+             <xsl:choose>
+               <xsl:when test="string-length(@op) > 0">POLDEK_OP_<xsl:value-of select="@op"/></xsl:when>
+               <xsl:otherwise>0</xsl:otherwise>
+             </xsl:choose>, { 0 } },
+             <xsl:for-each select="alias">
+          {  "<xsl:value-of select="@name"/>", CONF_TYPE_F_ALIAS<xsl:if test="@obsoleted='yes'"> | CONF_TYPE_F_OBSL</xsl:if>, NULL, 0, { 0 } },
+             </xsl:for-each>
+             
+        </xsl:for-each>
+      </xsl:for-each>
+          { NULL, 0, NULL, 0, { 0 } }
+};
+
+    </xsl:for-each>
+
+
+struct poldek_conf_section poldek_conf_sections[] = {
+  <xsl:for-each select="config/confsection">
+    { "<xsl:value-of select="@name"/>", <xsl:value-of select="@name"/>_tags, 
+       <xsl:choose>
+         <xsl:when test="@multiple='yes'">1</xsl:when>
+         <xsl:otherwise>0</xsl:otherwise>
+       </xsl:choose>,
+    },
+ </xsl:for-each>   
+    { NULL, 0, 0 }
+};
+
+</xsl:template>
+</xsl:stylesheet>
+