FIX: Remove undistributable CHEMKIN files
[freefoam.git] / doc / Doxygen / filter.py.in
blobada03f90426d5678385d5b66953151b6d5d57ae2
1 #!@PYTHON_EXECUTABLE@
2 import sys
3 import re
4 sys.path.insert(0, '@CMAKE_BINARY_DIR@/data/python')
5 import FreeFOAM.doxyFilter
6 from FreeFOAM.compat import *
8 filter_table = {
9 @doxyfilters@
10 # catch-all for optional applications
11 '@CMAKE_SOURCE_DIR@/applications/.*': None,
14 basedir = '@CMAKE_SOURCE_DIR@'
15 incdir = '@CMAKE_BINARY_DIR@/include'
17 fname = sys.argv[1]
18 for p, name in filter_table.items():
19 if re.match(p, fname):
20 topOnly = name==None and fname[-2:]=='.C'
21 FreeFOAM.doxyFilter.filter(fname, libName=name, baseDir=basedir,
22 topOnly=topOnly, incWrapperDir=incdir)
23 sys.exit(0)
24 echo("ERROR: Failed to match source file", fname, file=sys.stderr)
25 sys.exit(1)