Mercurial > mplayer.hg
annotate DOCS/xml/configure @ 34102:dd8320c2a2cb
libmpcodec: add vf_lavfi.
This filter wraps a complete libavfilter filter graph.
As the API of libavfilter is not completely stable yet, the filter is not
enabled by default, so as not to let mplayer unbuildable.
Some strange behaviours may appear due to the very different model of buffer
allocation between mplayer and lavfi.
author | cigaes |
---|---|
date | Wed, 12 Oct 2011 11:38:10 +0000 |
parents | d55bcadba17a |
children |
rev | line source |
---|---|
10309
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
1 #!/bin/sh |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
2 |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
3 # Script to check for catalogs, stylesheets, XSL processors and all |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
4 # the other stuff necessary to convert the XML documentation. |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
5 |
11817
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
6 echo "Searching for XML catalogs..." |
31771
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
7 for try_catalog in \ |
15132
f3617970ae22
Break overly long lines into something more manageable.
diego
parents:
13838
diff
changeset
|
8 /etc/sgml/catalog \ |
17239 | 9 /usr/share/xml/docbook/*/catalog.xml \ |
21806
5aaf8dbd177e
add autodetection support for docbook stuff installed in /opt, such as macports do for ex.
gpoirier
parents:
20761
diff
changeset
|
10 /opt/local/share/xml/docbook-xml/*/catalog.xml \ |
31778
ef8632ee675b
Add an XML catalog search path that works for current macports systems.
diego
parents:
31777
diff
changeset
|
11 /opt/local/share/xml/docbook/*/catalog.xml \ |
26149 | 12 /usr/share/sgml/docbook/*/*catalog \ |
15132
f3617970ae22
Break overly long lines into something more manageable.
diego
parents:
13838
diff
changeset
|
13 /usr/share/apps/ksgmltools2/customization/en/catalog \ |
f3617970ae22
Break overly long lines into something more manageable.
diego
parents:
13838
diff
changeset
|
14 /usr/share/sgml/catalog \ |
f3617970ae22
Break overly long lines into something more manageable.
diego
parents:
13838
diff
changeset
|
15 /usr/local/share/sgml/catalog \ |
f3617970ae22
Break overly long lines into something more manageable.
diego
parents:
13838
diff
changeset
|
16 /usr/lib/sgml/catalog \ |
f3617970ae22
Break overly long lines into something more manageable.
diego
parents:
13838
diff
changeset
|
17 /usr/local/lib/sgml/catalog \ |
f3617970ae22
Break overly long lines into something more manageable.
diego
parents:
13838
diff
changeset
|
18 /usr/share/docbook-xml42/catalog.xml \ |
f3617970ae22
Break overly long lines into something more manageable.
diego
parents:
13838
diff
changeset
|
19 /usr/share/sgml/docbook/xmlcatalog |
10309
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
20 do |
31774
ba2ae47a445f
cosmetics: Use more compact "if .. then" shell syntax.
diego
parents:
31773
diff
changeset
|
21 if test -f "$try_catalog"; then |
31771
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
22 catalog=$try_catalog |
10309
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
23 break |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
24 fi |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
25 done |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
26 |
31774
ba2ae47a445f
cosmetics: Use more compact "if .. then" shell syntax.
diego
parents:
31773
diff
changeset
|
27 if test -n "$catalog"; then |
31771
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
28 echo "Found SGML catalog at $catalog" |
31777
12ef042165eb
Simplify adding --catalogs option to xsltproc/xmllint command line.
diego
parents:
31774
diff
changeset
|
29 catalog_opts=--catalogs |
10309
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
30 else |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
31 echo "No SGML catalog found." |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
32 fi |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
33 |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
34 |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
35 |
11206
e7534574320c
html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents:
11188
diff
changeset
|
36 echo "Searching for stylesheets..." |
e7534574320c
html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents:
11188
diff
changeset
|
37 echo "Searching for html/chunk.xsl..." |
31771
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
38 for try_chunk_xsl in \ |
26149 | 39 /usr/share/xml/docbook/*/html/chunk.xsl \ |
15132
f3617970ae22
Break overly long lines into something more manageable.
diego
parents:
13838
diff
changeset
|
40 /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html/chunk.xsl \ |
f3617970ae22
Break overly long lines into something more manageable.
diego
parents:
13838
diff
changeset
|
41 /usr/share/sgml/docbook/yelp/docbook/html/chunk.xsl \ |
f3617970ae22
Break overly long lines into something more manageable.
diego
parents:
13838
diff
changeset
|
42 /usr/local/share/sgml/docbook/stylesheet/xsl/nwalsh/html/chunk.xsl \ |
f3617970ae22
Break overly long lines into something more manageable.
diego
parents:
13838
diff
changeset
|
43 /usr/local/share/sgml/docbook/yelp/docbook/html/chunk.xsl \ |
f3617970ae22
Break overly long lines into something more manageable.
diego
parents:
13838
diff
changeset
|
44 /usr/share/docbook-xsl/html/chunk.xsl \ |
17676 | 45 /usr/share/sgml/docbook/xsl-stylesheets*/html/chunk.xsl \ |
46 /usr/share/xml/docbook/stylesheet/nwalsh/current/html/chunk.xsl \ | |
21806
5aaf8dbd177e
add autodetection support for docbook stuff installed in /opt, such as macports do for ex.
gpoirier
parents:
20761
diff
changeset
|
47 /opt/local/share/xsl/docbook-xsl/html/chunk.xsl \ |
17676 | 48 |
10309
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
49 do |
31774
ba2ae47a445f
cosmetics: Use more compact "if .. then" shell syntax.
diego
parents:
31773
diff
changeset
|
50 if test -f "$try_chunk_xsl"; then |
31771
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
51 chunk_xsl=$try_chunk_xsl |
10309
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
52 break |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
53 fi |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
54 done |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
55 |
31774
ba2ae47a445f
cosmetics: Use more compact "if .. then" shell syntax.
diego
parents:
31773
diff
changeset
|
56 if test -z "$chunk_xsl"; then |
31771
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
57 chunk_xsl=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html/chunk.xsl |
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
58 echo "Not found. Using default ($chunk_xsl)" |
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
59 fake_chunk_xsl=yes |
10309
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
60 else |
31771
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
61 echo "Found chunk.xsl at $chunk_xsl" |
10309
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
62 fi |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
63 |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
64 echo "Searching for html/docbook.xsl..." |
31771
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
65 for try_docbook_xsl in \ |
26149 | 66 /usr/share/xml/docbook/*/html/docbook.xsl \ |
15132
f3617970ae22
Break overly long lines into something more manageable.
diego
parents:
13838
diff
changeset
|
67 /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html/docbook.xsl \ |
f3617970ae22
Break overly long lines into something more manageable.
diego
parents:
13838
diff
changeset
|
68 /usr/share/sgml/docbook/yelp/docbook/html/docbook.xsl \ |
f3617970ae22
Break overly long lines into something more manageable.
diego
parents:
13838
diff
changeset
|
69 /usr/local/share/sgml/docbook/stylesheet/xsl/nwalsh/html/docbook.xsl \ |
f3617970ae22
Break overly long lines into something more manageable.
diego
parents:
13838
diff
changeset
|
70 /usr/local/share/sgml/docbook/yelp/docbook/html/docbook.xsl \ |
f3617970ae22
Break overly long lines into something more manageable.
diego
parents:
13838
diff
changeset
|
71 /usr/share/docbook-xsl/html/docbook.xsl \ |
17676 | 72 /usr/share/sgml/docbook/xsl-stylesheets*/html/docbook.xsl \ |
73 /usr/share/xml/docbook/stylesheet/nwalsh/current/html/docbook.xsl \ | |
21806
5aaf8dbd177e
add autodetection support for docbook stuff installed in /opt, such as macports do for ex.
gpoirier
parents:
20761
diff
changeset
|
74 /opt/local/share/xsl/docbook-xsl/html/docbook.xsl \ |
17676 | 75 |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
76 do |
31774
ba2ae47a445f
cosmetics: Use more compact "if .. then" shell syntax.
diego
parents:
31773
diff
changeset
|
77 if test -f "$try_docbook_xsl"; then |
31771
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
78 docbook_xsl=$try_docbook_xsl |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
79 break |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
80 fi |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
81 done |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
82 |
31774
ba2ae47a445f
cosmetics: Use more compact "if .. then" shell syntax.
diego
parents:
31773
diff
changeset
|
83 if test -z "$docbook_xsl"; then |
31771
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
84 docbook_xsl=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html/docbook.xsl |
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
85 echo "Not found. Using default ($docbook_xsl)" |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
86 else |
31771
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
87 echo "Found docbook.xsl at $docbook_xsl" |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
88 fi |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
89 |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
90 cat > html-chunk.xsl << EOF |
20761 | 91 <?xml version="1.0" encoding="utf-8"?> |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
92 <!-- ************************************************** |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
93 This file is generated automatically. DO NOT EDIT. |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
94 ************************************************** --> |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
95 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
96 version="1.0"> |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
97 |
31771
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
98 <xsl:import href="$chunk_xsl"/> |
11188
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
99 <xsl:include href="html-common.xsl"/> |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
100 |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
101 </xsl:stylesheet> |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
102 EOF |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
103 |
6dfed0b2a300
Add support for building all-in-one HTML docs. (Files go to DOCS/HTML-single)
lumag
parents:
11012
diff
changeset
|
104 |
11206
e7534574320c
html.xsl ---> html-single.xsl + more consistency + small fixes
diego
parents:
11188
diff
changeset
|
105 cat > html-single.xsl << EOF |
20761 | 106 <?xml version="1.0" encoding="utf-8"?> |
10309
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
107 <!-- ************************************************** |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
108 This file is generated automatically. DO NOT EDIT. |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
109 ************************************************** --> |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
110 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
111 version="1.0"> |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
112 |
31771
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
113 <xsl:import href="$docbook_xsl"/> |
10309
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
114 <xsl:include href="html-common.xsl"/> |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
115 |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
116 </xsl:stylesheet> |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
117 EOF |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
118 |
11817
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
119 echo "Searching for DTD..." |
22496 | 120 #FIXME: This should prefer higher version numbers, not the other way around .. |
31771
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
121 for try_dtd in \ |
22496 | 122 /usr/share/xml/docbook/*/dtd/4*/docbookx.dtd \ |
17239 | 123 /usr/share/xml/docbook/*/docbookx.dtd \ |
22126 | 124 /usr/share/sgml/docbook/*/docbookx.dtd \ |
125 /usr/share/sgml/docbook/dtd/*/docbookx.dtd \ | |
126 /usr/share/sgml/docbook/dtd/xml/*/docbookx.dtd \ | |
127 /usr/share/docbook-xml*/docbookx.dtd \ | |
26021
69e007ee01d6
improve DTD dection of MacPort-install docbook package
gpoirier
parents:
22496
diff
changeset
|
128 /opt/local/share/xml/docbook*/*/docbookx.dtd \ |
22126 | 129 /usr/share/apps/ksgmltools2/docbook/*/docbookx.dtd |
11817
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
130 do |
31774
ba2ae47a445f
cosmetics: Use more compact "if .. then" shell syntax.
diego
parents:
31773
diff
changeset
|
131 if test -f "$try_dtd"; then |
31771
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
132 dtd=$try_dtd |
11817
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
133 break |
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
134 fi |
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
135 done |
10309
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
136 |
31774
ba2ae47a445f
cosmetics: Use more compact "if .. then" shell syntax.
diego
parents:
31773
diff
changeset
|
137 if test -z "$dtd"; then |
31771
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
138 dtd=/usr/share/sgml/docbook/dtd/xml/4.1.2/docbookx.dtd |
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
139 echo "Not found. Using default ($dtd)." |
11817
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
140 else |
31771
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
141 echo "Found docbookx.dtd at $dtd" |
11817
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
142 fi |
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
143 |
27297 | 144 for lang in `grep 'DOC_LANGS =' ../../config.mak|cut -d= -f2`; do |
11817
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
145 cat > $lang/main.xml << EOF |
20761 | 146 <?xml version="1.0" encoding="utf-8" standalone="no"?> |
20440 | 147 <!-- ************************************************** |
148 This file is generated automatically. DO NOT EDIT. | |
149 ************************************************** --> | |
11817
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
150 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" |
31771
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
151 "$dtd" |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
28969
diff
changeset
|
152 [ |
11817
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
153 EOF |
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
154 |
31773
69eadc0c5372
Adding XML entities for the English XML files to main.xml is enough.
diego
parents:
31772
diff
changeset
|
155 for file in $(find en -name \*.xml -exec basename \{\} \;); do |
30990 | 156 echo '<!ENTITY '$file' SYSTEM "'$file'">' >> $lang/main.xml |
11817
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
157 done |
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
158 |
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
159 cat >> $lang/main.xml << EOF |
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
160 ]> |
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
161 <book id="index" lang="$lang"> |
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
162 &documentation.xml; |
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
163 </book> |
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
164 EOF |
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
165 |
19919e913e3d
Shiny new build system by Torinthiel, polished and improved by myself.
diego
parents:
11468
diff
changeset
|
166 done |
10309
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
167 |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
168 echo "Looking for a valid XSLT processor..." |
31774
ba2ae47a445f
cosmetics: Use more compact "if .. then" shell syntax.
diego
parents:
31773
diff
changeset
|
169 if xsltproc --version > /dev/null 2>&1; then |
ba2ae47a445f
cosmetics: Use more compact "if .. then" shell syntax.
diego
parents:
31773
diff
changeset
|
170 if test -z "$fake_chunk_xsl"; then |
10309
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
171 echo "Found xsltproc. If it works, it's probably the best choice." |
31777
12ef042165eb
Simplify adding --catalogs option to xsltproc/xmllint command line.
diego
parents:
31774
diff
changeset
|
172 xsltcommand="xsltproc $catalog_opts -o \$\$1 \$\$2 \$\$3" |
10309
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
173 else |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
174 echo "Found xsltproc but no stylesheets on your system." |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
175 echo "xsltproc is unusable without stylesheets." |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
176 fi |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
177 fi |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
178 |
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
179 |
31468
dbab16182ba2
Get rid of xmllint wrapper redirection; run commands directly from make.
diego
parents:
30990
diff
changeset
|
180 cat > xml.mak << EOF |
31771
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
181 CATALOG = $catalog |
31780 | 182 XMLLINT_COMMAND = xmllint --noout --noent --postvalid $catalog_opts \$* |
31771
75398f13e9f6
cosmetics: Drop leading underscores from variable names.
diego
parents:
31770
diff
changeset
|
183 XSLT_COMMAND = $xsltcommand |
10309
3c0e1b182fbc
XML autoconfiguration by Dmitry Baryshkov <lumag@qnc.ru> with some
diego
parents:
diff
changeset
|
184 EOF |