Include NEWS file in documentation
authorMichael Hanselmann <hansmi@google.com>
Fri, 18 Sep 2009 15:24:27 +0000 (17:24 +0200)
committerMichael Hanselmann <hansmi@google.com>
Fri, 18 Sep 2009 15:31:30 +0000 (17:31 +0200)
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

.gitignore
Makefile.am
doc/index.rst

index e002438..59f9ffd 100644 (file)
@@ -39,6 +39,7 @@
 /doc/api
 /doc/build
 /doc/html
+/doc/news.rst
 /doc/*.in
 /doc/*.png
 
index 9e67492..ed34957 100644 (file)
@@ -54,6 +54,7 @@ CLEANFILES = \
        autotools/replace_vars.sed \
        daemons/ganeti-cleaner \
        devel/upload \
+       doc/news.rst \
        doc/examples/bash_completion \
        doc/examples/ganeti.initd \
        doc/examples/ganeti.cron \
@@ -73,6 +74,7 @@ CLEANFILES = \
 BUILT_SOURCES = \
        ganeti \
        srclinks \
+       doc/news.rst \
        lib/_autoconf.py
 
 nodist_pkgpython_PYTHON = \
@@ -148,7 +150,7 @@ docrst = \
        doc/rapi.rst \
        doc/security.rst
 
-doc/html: $(docrst) $(docpng) doc/conf.py configure.ac
+doc/html: $(docrst) doc/news.rst $(docpng) doc/conf.py configure.ac
        @test -n "$(SPHINX)" || \
            { echo 'sphinx-build' not found during configure; exit 1; }
        mkdir -p doc/build/doctrees
@@ -315,6 +317,14 @@ daemons/ganeti-cleaner: daemons/ganeti-cleaner.in stamp-directories \
        sed -f $(REPLACE_VARS_SED) < $< > $@
        chmod +x $@
 
+doc/news.rst: NEWS
+       set -e; \
+       { echo '.. This file is automatically updated at build time from $<.'; \
+         echo '.. Do not edit.'; \
+               echo; \
+         cat $<; \
+       } > $@
+
 doc/examples/%: doc/examples/%.in stamp-directories \
                $(REPLACE_VARS_SED)
        sed -f $(REPLACE_VARS_SED) < $< > $@
index feeb8cf..8fb7a4b 100644 (file)
@@ -19,6 +19,7 @@ Contents:
    iallocator.rst
    rapi.rst
    devnotes.rst
+   news.rst
    glossary.rst
 
 Also see the :ref:`search`.