diff options
| -rw-r--r-- | ChangeLog | 9 | ||||
| -rw-r--r-- | configure.ac | 3 | ||||
| -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 |
5 files changed, 17 insertions, 6 deletions
@@ -1,3 +1,12 @@ +2006-08-10 John Finlay <finlay@moeraki.com> + + * 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. + 2006-08-08 Johan Dahlin <jdahlin@async.com.br> * configure.ac: Post release version bump. diff --git a/configure.ac b/configure.ac index 6749980..ebb78ed 100644 --- a/configure.ac +++ b/configure.ac @@ -72,9 +72,6 @@ AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)]) PLATFORM=`$PYTHON -c "from distutils import util; print util.get_platform()"` AC_SUBST(PLATFORM) -BUILDDATE=`$PYTHON -c "import datetime; print datetime.date.today()"` -AC_SUBST(BUILDDATE) - AC_ARG_ENABLE(thread, AC_HELP_STRING([--disable-thread], [Disable pygobject threading support]),, enable_thread=yes) 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"> |
