summaryrefslogtreecommitdiffstats
path: root/src/mangen.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2021-06-12 12:40:44 (GMT)
committeralbert-github <albert.tests@gmail.com>2021-06-12 12:40:44 (GMT)
commitf366804a95c02d0883a3a1598a0f93b4ee0c982c (patch)
tree6367a57fc90302d6b3dcfd68ed7e4d1ac7d83d72 /src/mangen.cpp
parent8c8a0343662f69ce65ced20dc8c6025e7fc022cd (diff)
downloadDoxygen-f366804a95c02d0883a3a1598a0f93b4ee0c982c.zip
Doxygen-f366804a95c02d0883a3a1598a0f93b4ee0c982c.tar.gz
Doxygen-f366804a95c02d0883a3a1598a0f93b4ee0c982c.tar.bz2
bug_674442 CREATE_FOLDERS should not create unused folders
Also known as issue #4672 The folders are still created but in case the folders are empty after the doxygen run the directories are removed.
Diffstat (limited to 'src/mangen.cpp')
-rw-r--r--src/mangen.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mangen.cpp b/src/mangen.cpp
index 05c5e77..50ba608 100644
--- a/src/mangen.cpp
+++ b/src/mangen.cpp
@@ -115,6 +115,13 @@ void ManGenerator::init()
createSubDirs(d);
}
+void ManGenerator::cleanup()
+{
+ QCString dname = Config_getString(MAN_OUTPUT);
+ Dir d(dname.str());
+ clearSubDirs(d);
+}
+
static QCString buildFileName(const QCString &name)
{
QCString fileName;