chiark / gitweb /
systemd-python: provide version info to sphinx
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 8 Mar 2013 16:45:37 +0000 (11:45 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 9 Mar 2013 13:47:50 +0000 (08:47 -0500)
Makefile.am
src/python-systemd/docs/conf.py

index bea545259dc7f6716a0cc0dbf7fef34bdf99606f..7b1f17f65a944f18397b52711cc1d48c17af91a0 100644 (file)
@@ -3551,7 +3551,7 @@ BUILT_SOURCES += \
        src/python-systemd/id128-constants.h
 
 PAPER = $(shell cat /etc/papersize 2>/dev/null || echo a4)
        src/python-systemd/id128-constants.h
 
 PAPER = $(shell cat /etc/papersize 2>/dev/null || echo a4)
-SPHINXOPTS = -D latex_paper_size=$(PAPER)
+SPHINXOPTS = -D latex_paper_size=$(PAPER) -D version=$(VERSION) -D release=$(VERSION)
 sphinx-%:
        $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
        $(AM_V_GEN)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(SPHINX_BUILD) -b $* $(SPHINXOPTS) $(top_srcdir)/src/python-systemd/docs $(top_builddir)/docs/html/python-systemd/
 sphinx-%:
        $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
        $(AM_V_GEN)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(SPHINX_BUILD) -b $* $(SPHINXOPTS) $(top_srcdir)/src/python-systemd/docs $(top_builddir)/docs/html/python-systemd/
index 4a55778b7d52d1ce2434cf5fb37bd8584572cc68..ad3f0023c7fb9f30016ef96258f92eab03510422 100644 (file)
@@ -42,15 +42,6 @@ master_doc = 'index'
 # General information about the project.
 project = u'python-systemd'
 
 # General information about the project.
 project = u'python-systemd'
 
-# The version info for the project you're documenting, acts as replacement for
-# |version| and |release|, also used in various other places throughout the
-# built documents.
-#
-# The short X.Y version.
-version = '197'
-# The full version, including alpha/beta/rc tags.
-release = '197'
-
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
 #language = None
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
 #language = None