add Doxyfile.in in documentation directory

This commit is contained in:
Panagiotis Cheilaris 2013-05-31 10:04:42 +02:00
parent ecf3cf77b0
commit fb87d46f78
1 changed files with 12 additions and 0 deletions

View File

@ -21,6 +21,13 @@ args = parser.parse_args()
packagename = args.packagename
creationpath = args.creationpath
doxystring = \
r"""@INCLUDE = ${CGAL_DOC_PACKAGE_DEFAULTS}
PROJECT_NAME = "CGAL ${CGAL_CREATED_VERSION_NUM} - Put title of project here"
INPUT = ${CMAKE_SOURCE_DIR}/PACKAGENAME/doc/PACKAGENAME/ \
${CMAKE_SOURCE_DIR}/PACKAGENAME/include
"""
xmlstring = \
"""<project>
<!-- PRETTY PACKAGE NAME should be the same as the one used in description -->
@ -178,6 +185,11 @@ if re.match("^[A-Za-z_][A-Za-z0-9_]*$", packagename):
xmlfile.write(re.sub('PACKAGENAME', packagename, xmlstring))
xmlfile.close()
doxypath = os.path.join(docpath, ('Doxyfile.in'))
doxyfile = open(doxypath, 'w')
doxyfile.write(re.sub('PACKAGENAME', packagename, doxystring))
doxyfile.close()
descrpath = os.path.join(docpath, 'PackageDescription.txt')
descrfile = open(descrpath, 'w')
descrfile.write(descrstring)