From 4246765f4c9ea58a70b1e34d787bd55223407546 Mon Sep 17 00:00:00 2001 From: John Finlay Date: Thu, 10 Aug 2006 23:47:01 +0000 Subject: 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. --- ChangeLog | 9 +++++++++ configure.ac | 3 --- docs/Makefile.am | 9 +++++++-- docs/reference/entities.docbook.in | 1 - docs/reference/pygobject-ref.xml | 1 + 5 files changed, 17 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 415c845..dac6dfe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2006-08-10 John Finlay + + * 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 * 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 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" [ %entities; + ]> -- cgit