[MPlayer-DOCS] [PATCH] make configure and generated main.xml's more "spec-valid"

Torinthiel torinthiel at megapolis.pl
Thu Jan 4 22:16:00 CET 2007


On Thu, Jan 04, 2007 at 10:08:13PM +0100, Torinthiel wrote:
> On Thu, Jan 04, 2007 at 04:38:32PM +0300, Andrew Savchenko wrote:
> > Local DTD is currently detected in my system. But if it will not 
> > for some reason? Of if there are some people with no DTDs in 
> > default path?
> 
> For what reason? Either the file exists, and it is detected, or not. If
> there are some people without DTDs, then right now they're doomed. With
> this patch and an active internet connection they can build the docs.
> 
> > Interesting, there are my locations of dtd's:
> > ---
> > $ locate docbookx.dtd
> > /usr/share/apps/ksgmltools2/docbook/xml-dtd-4.1.2/docbookx.dtd
> > /usr/share/apps/ksgmltools2/docbook/xml-dtd-4.2/docbookx.dtd
> > /usr/share/sgml/docbook/sgml-dtd-4.4-1.0-26/docbookx.dtd
> > /usr/share/sgml/docbook/sgml-dtd-4.3-1.0-26/docbookx.dtd
> > /usr/share/sgml/docbook/sgml-dtd-4.2-1.0-26/docbookx.dtd
> > /usr/share/sgml/docbook/xml-dtd-4.3-1.0-26/docbookx.dtd
> > /usr/share/sgml/docbook/xml-dtd-4.2-1.0-26/docbookx.dtd
> > /usr/share/sgml/docbook/xml-dtd-4.4-1.0-26/docbookx.dtd
> > /usr/share/sgml/docbook/xml-dtd-4.1.2-1.0-26/docbookx.dtd
> > ---
> > However, only the last location could be detected with current 
> > configure script.
> 
> See the attached patch, it should detect some more paths ;)
> Diego, should I?

This patch.
Torinthiel

-- 
 Waclaw "Torinthiel" Schiller       GG#: 3073512
   torinthiel(at)megapolis(dot)pl
   gpg: 0906A2CE fpr: EE3E DFB4 C4D6 E22E 8999  D714 7CEB CDDC 0906 A2CE
 "No classmates may be used during this examination"
-------------- next part --------------
Index: DOCS/xml/configure
===================================================================
--- DOCS/xml/configure	(revision 21824)
+++ DOCS/xml/configure	(working copy)
@@ -126,14 +126,12 @@
 echo "Searching for DTD..."
 for _try_dtd in \
   /usr/share/xml/docbook/*/docbookx.dtd \
-  /usr/share/sgml/docbook/dtd/xml/4.1.2/docbookx.dtd \
-  /usr/share/docbook-xml42/docbookx.dtd \
-  /usr/share/sgml/docbook/xml-dtd-4.1.2*/docbookx.dtd \
-  /usr/share/sgml/docbook/xml-dtd-4.2/docbookx.dtd \
-  /usr/share/sgml/docbook/xml-dtd-4.4/docbookx.dtd \
-  /usr/share/xml/docbook/schema/dtd/4.2/docbookx.dtd \
-  /opt/local/share/xml/docbook-xml/4.2/docbookx.dtd \
-  /usr/share/sgml/docbook/dtd/4.2/docbookx.dtd
+  /usr/share/sgml/docbook/*/docbookx.dtd \
+  /usr/share/sgml/docbook/dtd/*/docbookx.dtd \
+  /usr/share/sgml/docbook/dtd/xml/*/docbookx.dtd \
+  /usr/share/docbook-xml*/docbookx.dtd \
+  /opt/local/share/xml/docbook-xml/*/docbookx.dtd \
+  /usr/share/apps/ksgmltools2/docbook/*/docbookx.dtd
 do
   if test -f "$_try_dtd"
   then
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-docs/attachments/20070104/35ab51c1/attachment.pgp>


More information about the MPlayer-DOCS mailing list