Simple script to generate doxgen documentation
authorColin Clark <colin.clark@cclark.uk>
Sat, 10 Jun 2023 15:25:31 +0000 (16:25 +0100)
committerColin Clark <colin.clark@cclark.uk>
Sat, 10 Jun 2023 15:25:31 +0000 (16:25 +0100)
- Ignore ./subprojects folder from doxygen documentation

doxygen.conf
scripts/doxygen-help.sh
scripts/doxygen.sh [new file with mode: 0755]

index 97a5c40..f2484b7 100644 (file)
@@ -956,7 +956,8 @@ RECURSIVE              = YES
 # Note that relative paths are relative to the directory from which doxygen is
 # run.
 
-EXCLUDE                = build
+EXCLUDE                = build \
+                         subprojects
 
 # The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
 # directories that are symbolic links (a Unix file system feature) are excluded
index 75b00ca..4621b0b 100755 (executable)
 ##  
 ##  **********************************************************************
 ##  
-## To generate the Doxygen html files set the following
-## environment variables:  
-## DOCDIR (destination folder)  
-## SRCDIR (must point to the level above the source code)  
-## PROJECT  
-## VERSION
-##  
-## Then run 'doxygen doxygen.conf'
+## To generate the Doxygen html files run 'doxygen.sh'
 ##
  
 if [ -z "${DOCDIR}" ]
diff --git a/scripts/doxygen.sh b/scripts/doxygen.sh
new file mode 100755 (executable)
index 0000000..ee74caa
--- /dev/null
@@ -0,0 +1,60 @@
+#!/bin/sh
+#**********************************************************************
+# Copyright (C) 2023 - The Geeqie Team
+#
+# Author: Colin Clark
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#**********************************************************************
+
+## @file
+## @brief Run doxygen for the Geeqie project
+##
+## The environment variables needed to generate the
+## Geeqie doxygen documentation are set up here.
+##
+## Run from the project root directory.
+##
+## $1 Destination directory. If blank, default is ../doxygen
+##
+
+if ! { [ -d ".git" ] && [ -d "src" ] && [ -f "geeqie.1" ] && [ -f "doxygen.conf" ]; }
+then
+       printf "This is not the project root directory\n"
+    exit
+fi
+
+if [ -n "$1" ]
+then
+       DOCDIR="$1"
+else
+       DOCDIR="$PWD"/../doxygen
+fi
+
+if ! mkdir -p "$DOCDIR"/doxygen
+then
+       printf "Cannot create %s\n" "$DOCDIR"
+fi
+
+export DOCDIR
+export SRCDIR="$PWD"
+export PROJECT="Geeqie"
+VERSION=$(git -C "$PWD" tag --list v[1-9]* | tail -n 1)
+export VERSION
+export PLANTUML_JAR_PATH="$HOME"/bin/plantuml.jar
+export INLINE_SOURCES=YES
+export STRIP_CODE_COMMENTS=NO
+
+doxygen doxygen.conf