From 54481bd87c41570d8415f3ad1a682a3f3808c308 Mon Sep 17 00:00:00 2001
From: Giovanni Bussi <giovanni.bussi@gmail.com>
Date: Mon, 2 Jun 2014 23:44:55 +0100
Subject: [PATCH] Improved Doxyfile

list of PP files is now generated automatically
---
 user-doc/Doxyfile   | 19 +++----------------
 user-doc/Makefile   |  2 +-
 user-doc/go-doxygen |  7 +++++++
 3 files changed, 11 insertions(+), 17 deletions(-)
 create mode 100755 user-doc/go-doxygen

diff --git a/user-doc/Doxyfile b/user-doc/Doxyfile
index 62abc0717..2cc5dbb53 100644
--- a/user-doc/Doxyfile
+++ b/user-doc/Doxyfile
@@ -32,7 +32,7 @@ DOXYFILE_ENCODING      = UTF-8
 # title of most generated pages and in a few other places.
 # The default value is: My Project.
 
-PROJECT_NAME           = "Plumed 2.1: user manual"
+PROJECT_NAME           = PLUMED
 
 # The PROJECT_NUMBER tag can be used to enter a project or revision number. This
 # could be handy for archiving the generated documentation or if some version
@@ -733,24 +733,11 @@ WARN_LOGFILE           =
 # spaces.
 # Note: If this tag is empty the current directory is searched.
 
-INPUT                  = IntroPP.txt \
-                         BiasPP.txt \
-                         AnalysisPP.txt \
-                         ColvarPP.txt \
-                         SyntaxPP.txt \
-                         FunctionsPP.txt \
-                         GroupPP.txt \
-                         InstallationPP.txt \
-                         GlossaryPP.txt \
-                         TutorialsPP.txt \
-                         ModulesPP.txt \
-                         MiscPP.txt \
-                         ToolsPP.txt \
-                         RegexPP.txt \
-                         ../CHANGES \
+INPUT                  = ../CHANGES \
                          tutorials \
                          automatic
 
+
 # This tag can be used to specify the character encoding of the source files
 # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
 # libiconv (or the iconv built into libc) for the transcoding. See the libiconv
diff --git a/user-doc/Makefile b/user-doc/Makefile
index 0f1afe88d..83a525373 100644
--- a/user-doc/Makefile
+++ b/user-doc/Makefile
@@ -14,7 +14,7 @@ else
 
 all:
 	./extract
-	doxygen
+	./go-doxygen
 	cp Octocat.png html/
 	./report_errors
 
diff --git a/user-doc/go-doxygen b/user-doc/go-doxygen
new file mode 100755
index 000000000..4f8bc67a0
--- /dev/null
+++ b/user-doc/go-doxygen
@@ -0,0 +1,7 @@
+#! /bin/bash
+
+{
+  cat Doxyfile
+  echo "PROJECT_NUMBER = \"$(plumed info --version)\""
+  echo "INPUT+=" *PP.txt
+} | doxygen -
-- 
GitLab