Show Xserver release/version date in DIX & DDX docs
Uses a fake absolute path to the entity definition files so that the xmlto --searchpath will work for finding the actual path Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Dan Nicholson <dbn.lists@gmail.com> Tested-by: Gaetan Nadon <memsize@videotron.ca>
This commit is contained in:
parent
2bdc73bcf4
commit
78fe4be4c4
|
@ -2139,6 +2139,7 @@ AC_TRY_COMPILE([
|
||||||
|
|
||||||
AC_DEFINE_DIR(PROJECTROOT, prefix, [Overall prefix])
|
AC_DEFINE_DIR(PROJECTROOT, prefix, [Overall prefix])
|
||||||
|
|
||||||
|
AC_SUBST([RELEASE_DATE])
|
||||||
BUILD_DATE="`date +'%Y%m%d'`"
|
BUILD_DATE="`date +'%Y%m%d'`"
|
||||||
AC_SUBST([BUILD_DATE])
|
AC_SUBST([BUILD_DATE])
|
||||||
BUILD_TIME="`date +'1%H%M%S'`"
|
BUILD_TIME="`date +'1%H%M%S'`"
|
||||||
|
@ -2162,6 +2163,7 @@ dbe/Makefile
|
||||||
dix/Makefile
|
dix/Makefile
|
||||||
doc/Makefile
|
doc/Makefile
|
||||||
doc/xml/Makefile
|
doc/xml/Makefile
|
||||||
|
doc/xml/xserver.ent
|
||||||
fb/Makefile
|
fb/Makefile
|
||||||
record/Makefile
|
record/Makefile
|
||||||
config/Makefile
|
config/Makefile
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
# Add & Override for this directory and its subdirectories
|
||||||
|
xserver.ent
|
||||||
|
Xserver-spec.html
|
||||||
|
Xserver-spec.pdf
|
||||||
|
Xserver-spec.txt
|
|
@ -1,6 +1,7 @@
|
||||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||||
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
||||||
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
||||||
|
<!ENTITY % defs SYSTEM "/xserver/doc/xml/xserver.ent"> %defs;
|
||||||
]>
|
]>
|
||||||
|
|
||||||
<article>
|
<article>
|
||||||
|
@ -38,7 +39,8 @@
|
||||||
<affiliation><orgname>X.org Foundation and Hewlett Packard</orgname></affiliation>
|
<affiliation><orgname>X.org Foundation and Hewlett Packard</orgname></affiliation>
|
||||||
</author>
|
</author>
|
||||||
<publisher><publishername>The X.Org Foundation</publishername></publisher>
|
<publisher><publishername>The X.Org Foundation</publishername></publisher>
|
||||||
<pubdate>2004</pubdate>
|
<pubdate>&xserver.reldate;</pubdate>
|
||||||
|
<releaseinfo>X server version &xserver.version;</releaseinfo>
|
||||||
<title>Definition of the Porting Layer for the X v11 Sample Server</title>
|
<title>Definition of the Porting Layer for the X v11 Sample Server</title>
|
||||||
<titleabbrev>X Porting Layer</titleabbrev>
|
<titleabbrev>X Porting Layer</titleabbrev>
|
||||||
<revhistory>
|
<revhistory>
|
||||||
|
|
|
@ -36,24 +36,33 @@ BUILT_DOC_FILES =
|
||||||
|
|
||||||
SUFFIXES = .xml .txt .html .pdf
|
SUFFIXES = .xml .txt .html .pdf
|
||||||
|
|
||||||
|
XML_ENT_DIR = $(abs_top_builddir)/doc/xml
|
||||||
|
XMLTO_FLAGS = --searchpath $(XML_ENT_DIR)
|
||||||
|
|
||||||
if HAVE_XMLTO
|
if HAVE_XMLTO
|
||||||
BUILT_DOC_FILES += $(TXT_FILES)
|
BUILT_DOC_FILES += $(TXT_FILES)
|
||||||
.xml.txt:
|
.xml.txt:
|
||||||
@rm -f $@
|
@rm -f $@
|
||||||
$(AM_V_GEN)$(XMLTO) txt $<
|
$(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) txt $<
|
||||||
|
|
||||||
BUILT_DOC_FILES += $(HTML_FILES)
|
BUILT_DOC_FILES += $(HTML_FILES)
|
||||||
.xml.html:
|
.xml.html:
|
||||||
@rm -f $@
|
@rm -f $@
|
||||||
$(AM_V_GEN)$(XMLTO) xhtml-nochunks $<
|
$(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) xhtml-nochunks $<
|
||||||
|
|
||||||
if HAVE_FOP
|
if HAVE_FOP
|
||||||
BUILT_DOC_FILES += $(PDF_FILES)
|
BUILT_DOC_FILES += $(PDF_FILES)
|
||||||
.xml.pdf:
|
.xml.pdf:
|
||||||
@rm -f $@
|
@rm -f $@
|
||||||
$(AM_V_GEN)$(XMLTO) --with-fop pdf $<
|
$(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) --with-fop pdf $<
|
||||||
endif
|
endif
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CLEAN_DOC_FILES = $(TXT_FILES) $(HTML_FILES) $(PDF_FILES)
|
CLEAN_DOC_FILES = $(TXT_FILES) $(HTML_FILES) $(PDF_FILES)
|
||||||
|
|
||||||
|
# All the files we build depend on the entities
|
||||||
|
$(BUILT_DOC_FILES): $(XML_ENT_DIR)/xserver.ent
|
||||||
|
|
||||||
|
$(XML_ENT_DIR)/xserver.ent:
|
||||||
|
(cd $(XML_ENT_DIR) && $(MAKE) $(AM_MAKEFLAGS) $(@F))
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
<!-- shared -*-xml-*- entity definitions for the X server documentation -->
|
||||||
|
<!ENTITY xserver.version "@PACKAGE_VERSION@">
|
||||||
|
<!ENTITY xserver.reldate "@RELEASE_DATE@">
|
|
@ -1,6 +1,7 @@
|
||||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||||
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
||||||
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
||||||
|
<!ENTITY % defs SYSTEM "/xserver/doc/xml/xserver.ent"> %defs;
|
||||||
<!-- config file keyword markup -->
|
<!-- config file keyword markup -->
|
||||||
<!-- specific config file keywords -->
|
<!-- specific config file keywords -->
|
||||||
<!ENTITY k.device "<emphasis>Device</emphasis>">
|
<!ENTITY k.device "<emphasis>Device</emphasis>">
|
||||||
|
@ -29,7 +30,8 @@
|
||||||
</othercredit>
|
</othercredit>
|
||||||
</authorgroup>
|
</authorgroup>
|
||||||
|
|
||||||
<pubdate>19 December 2003</pubdate>
|
<pubdate>&xserver.reldate;</pubdate>
|
||||||
|
<releaseinfo>Xorg server version &xserver.version;</releaseinfo>
|
||||||
|
|
||||||
</articleinfo>
|
</articleinfo>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue