commit 10cf9751008332397da6d26ba925f6379577ba43
parent 2d5e6a5d69e1501acdf0c2d18472683233b352db
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date: Thu, 28 May 2026 17:09:08 +0200
doxygen/git: Fix hook with missing doxy version file
Diffstat:
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/contrib/uncrustify_precommit b/contrib/uncrustify_precommit
@@ -80,8 +80,7 @@ then
[ -f doc/doxygen/Makefile ] && \
( set -o pipefail;
echo "Checking that doxygen is happy..."
- cd doc/doxygen;
- make fast 2>&1 | tee ${REPORT} | (grep error:; exit 0);
+ ./scripts/doxygen.meson.sh fast 2>&1 | tee ${REPORT} | (grep error:; exit 0);
) || { echo "Please fix the errors reported by doxygen in ${REPORT} first"; exit 3; }
else
echo "No doxygen installed, skipping check."
diff --git a/scripts/doxygen.meson.sh b/scripts/doxygen.meson.sh
@@ -13,6 +13,10 @@ if ! existence doxygen; then
fi
cd "${MESON_SOURCE_ROOT}/doc/doxygen"
echo "PROJECT_NUMBER = ${PACKAGE_VERSION}" > version.doxy
-make all
+if ["$1" = "fast"]; then
+ make fast
+else
+ make all
+fi
echo "Doxygen files generated into ${MESON_SOURCE_ROOT}/doc/doxygen!"