From 08f6aa6a8d305fc8d354a4e24ba33c25e74f1548 Mon Sep 17 00:00:00 2001
From: Marco Clemencic <marco.clemencic@cern.ch>
Date: Thu, 20 Oct 2016 10:49:58 +0200
Subject: [PATCH 1/2] fixed mistake in LHCbDoc

---
 LbRelease/python/LbRelease/LHCbDoc.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/LbRelease/python/LbRelease/LHCbDoc.py b/LbRelease/python/LbRelease/LHCbDoc.py
index 92a5cb2e..b916c725 100755
--- a/LbRelease/python/LbRelease/LHCbDoc.py
+++ b/LbRelease/python/LbRelease/LHCbDoc.py
@@ -33,7 +33,7 @@ project_names = dict([(p.upper(), p) for p in project_names])
 # they must be uppercase to match Doc.projects
 LCG_NAMES = set(('LCGCMT', 'LCG', 'HEPTOOLS'))
 
-def projectURL(project, version = None):
+def projectURL(project, version=None):
     """
     Return the URL to the web page of the project.
     """
@@ -547,12 +547,12 @@ class Doc(object):
                     )
         page += "</ul>\n"
         if LCG_NAMES.intersection(self.projects):
-            lcg_name = LCG_NAMES.intersection(self.projects)[0]
+            lcg_name = list(LCG_NAMES.intersection(self.projects))[0]
             page += "Based on %s.\n" % (
                     item % {'project': 'LCG',
-                            'homeurl': projectURL(lcg_name),
+                            'homeurl': projectURL('LCG'),
                             'version': self.getVersion(lcg_name),
-                            'versurl': projectURL(lcg_name, self.getVersion(lcg_name))
+                            'versurl': projectURL('LCG', self.getVersion(lcg_name))
                             }
                     )
         #page += '\n\\image html dependencies.png "Graph of the dependencies between projects"\n'
-- 
GitLab


From 03cf5e35c05f9976d23ed80222412ed537137b97 Mon Sep 17 00:00:00 2001
From: Marco Clemencic <marco.clemencic@cern.ch>
Date: Fri, 2 Dec 2016 15:22:14 +0100
Subject: [PATCH 2/2] exclude LbAmpGen from doxygen generation

it crashes doxygen with message

> input buffer overflow, can't enlarge buffer because scanner uses REJECT

see https://www.stack.nl/~dimitri/doxygen/manual/faq.html#faq_lex
---
 LbRelease/python/LbRelease/LHCbDoc.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/LbRelease/python/LbRelease/LHCbDoc.py b/LbRelease/python/LbRelease/LHCbDoc.py
index b916c725..9ae260c0 100755
--- a/LbRelease/python/LbRelease/LHCbDoc.py
+++ b/LbRelease/python/LbRelease/LHCbDoc.py
@@ -707,6 +707,7 @@ class Doc(object):
             "*/Panoramix/doc/doxygen/*",
             "*/Panoramix/doc/h/*",
             "*/qcustomplot.cpp",
+            "*/Gen/LbAmpGen/src/*",
             ]
         doxycfg["EXCLUDE_PATTERNS"] = excludes
         files = []
-- 
GitLab