fix unpredictable behavior in doxygen generator script
authorEli Schwartz <eschwartz93@gmail.com>
Wed, 19 Oct 2022 22:08:15 +0000 (18:08 -0400)
committerColin Clark <colin.clark@cclark.uk>
Thu, 20 Oct 2022 11:11:46 +0000 (12:11 +0100)
commit454314cc7be11bbbc2b226c872cbf8713d6865b8
tree105921e8a385f23b0454a67ff31c10ab3ff7bfef
parentda7ddebaa8b5f74fe08d545ff7184e52d11223fa
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