libgnunetchat

library for GNUnet Messenger
Log | Files | Refs | README | LICENSE

commit 963fc12054adaf60b7be87983eb676c6ac2ae66c
parent 8c659dc4a0f0a74aa5b017d58808c8d25b46cd2a
Author: Jacki <jacki@thejackimonster.de>
Date:   Thu, 26 Sep 2024 04:49:24 +0200

Check for pdflatex in doc generation script

Signed-off-by: Jacki <jacki@thejackimonster.de>

Diffstat:
MDoxyfile | 2+-
Mdoc/generate.sh | 11++++++++---
2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/Doxyfile b/Doxyfile @@ -48,7 +48,7 @@ PROJECT_NAME = libgnunetchat # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = 0.5.1-7-ga6932d1 +PROJECT_NUMBER = 0.5.1-8-g8c659dc # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a diff --git a/doc/generate.sh b/doc/generate.sh @@ -1,6 +1,11 @@ #!/bin/sh cd "${MESON_SOURCE_ROOT}" -sed -i 's/PROJECT_NUMBER\(\s\+=\s\+\)\([0-9\.a-z\-]\+\)/PROJECT_NUMBER\1'"$(sh contrib/get_version.sh)/" 'Doxyfile' + +VERSION="$(sh 'contrib/get_version.sh')" +sed -i 's/PROJECT_NUMBER\(\s\+=\s\+\)\([0-9\.a-z\-]\+\)/PROJECT_NUMBER\1'"${VERSION}/" 'Doxyfile' doxygen 'Doxyfile' -cd doc/latex -make + +if hash pdflatex 2>/dev/null; then + cd doc/latex + make +fi