diff options
| author | John Finlay <finlay@src.gnome.org> | 2006-08-10 23:47:01 +0000 |
|---|---|---|
| committer | John Finlay <finlay@src.gnome.org> | 2006-08-10 23:47:01 +0000 |
| commit | 4246765f4c9ea58a70b1e34d787bd55223407546 (patch) | |
| tree | 4f9082c3fa2a8b75229e07f25988c0f07c8a7a5d /docs | |
| parent | 354ca55447c85b745af6b51a58a934d6e057f8f1 (diff) | |
| download | pygobject-4246765f4c9ea58a70b1e34d787bd55223407546.tar.gz pygobject-4246765f4c9ea58a70b1e34d787bd55223407546.tar.xz pygobject-4246765f4c9ea58a70b1e34d787bd55223407546.zip | |
Use builddate.xml for the builddate entity and have builddate.xml be
* docs/reference/entities.docbook.in:
* docs/reference/pygobject-ref.xml:
* docs/Makefile.am:
* configure.ac:
Use builddate.xml for the builddate entity and have builddate.xml be
updated when the docs are built not during configure time.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/Makefile.am | 9 | ||||
| -rw-r--r-- | docs/reference/entities.docbook.in | 1 | ||||
| -rw-r--r-- | docs/reference/pygobject-ref.xml | 1 |
3 files changed, 8 insertions, 3 deletions
diff --git a/docs/Makefile.am b/docs/Makefile.am index 3195884..085c7db 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -47,11 +47,13 @@ HTML_DATA = \ BUILT_SOURCES = \ build_stamp \ + reference/builddate.xml \ $(HTML_DATA) CLEANFILES = \ build_stamp \ pygobject-ref.* \ + reference/builddate.xml \ $(HTML_DATA) EXTRA_DIST = \ @@ -65,7 +67,10 @@ REFERENCE_DEPS = \ $(HTML_DATA): build_stamp -build_stamp: $(REFERENCE_DEPS) +reference/builddate.xml: $(REFERENCE_DEPS) + $(PYTHON) -c 'import datetime; print datetime.date.today()' > $@ + +build_stamp: $(REFERENCE_DEPS) reference/builddate.xml xsltproc --nonet --xinclude -o $(BUILDDIR)/html/ \ --path $(BUILDDIR)/reference:$(srcdir)/reference \ --stringparam gtkdoc.bookname "pygobject" \ @@ -74,7 +79,7 @@ build_stamp: $(REFERENCE_DEPS) $(srcdir)/reference/pygobject-ref.xml touch $@ -pdf: $(REFERENCE_DEPS) +pdf: $(REFERENCE_DEPS) reference/builddate.xml xsltproc --nonet --xinclude -o pygobject-ref.fo xsl/pdf-style.xsl \ reference/pygobject-ref.xml pdfxmltex pygobject-ref.fo >output </dev/null diff --git a/docs/reference/entities.docbook.in b/docs/reference/entities.docbook.in index cc855cf..be788f8 100644 --- a/docs/reference/entities.docbook.in +++ b/docs/reference/entities.docbook.in @@ -1,2 +1 @@ -<!ENTITY builddate "@BUILDDATE@"> <!ENTITY version "@PACKAGE_VERSION@"> diff --git a/docs/reference/pygobject-ref.xml b/docs/reference/pygobject-ref.xml index 325367b..2f5af03 100644 --- a/docs/reference/pygobject-ref.xml +++ b/docs/reference/pygobject-ref.xml @@ -3,6 +3,7 @@ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [ <!ENTITY % entities SYSTEM "entities.docbook"> %entities; +<!ENTITY builddate SYSTEM "builddate.xml"> ]> <book id="pygobject-reference" xmlns:xi="http://www.w3.org/2001/XInclude"> |
