From 454314cc7be11bbbc2b226c872cbf8713d6865b8 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Wed, 19 Oct 2022 18:08:15 -0400 Subject: [PATCH] fix unpredictable behavior in doxygen generator script We know that SRCDIR is the location of doxygen.conf, and that it is ../ from the doc directory. But we don't know that the current working directory of the script is the doc directory -- the reference version of Meson currently sets that, but other implementations of Meson such as muon (c99) set it to the project root. Meson's own documentation says to NOT rely on this as it is officially unspecified. The solution is actually super simple though, because we already pass the project root as a script argument, so just... use that. :D --- doc/create-doxygen-lua-api.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/create-doxygen-lua-api.sh b/doc/create-doxygen-lua-api.sh index e3dac941..4c3402f8 100755 --- a/doc/create-doxygen-lua-api.sh +++ b/doc/create-doxygen-lua-api.sh @@ -100,7 +100,7 @@ BEGIN { {print} } } -' ../doxygen.conf > "$TMPFILE" +' "$SRCDIR"/doxygen.conf > "$TMPFILE" doxygen "$TMPFILE" -- 2.20.1