]> www.infradead.org Git - users/willy/linux.git/commitdiff
scripts: sphinx-pre-install: properly handle SPHINXBUILD
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 22 Jun 2025 06:02:39 +0000 (08:02 +0200)
committerJonathan Corbet <corbet@lwn.net>
Wed, 25 Jun 2025 18:22:48 +0000 (12:22 -0600)
Currently, the script ignores SPHINXBUILD, making it useless.
As we're about to use on another script, fix support for it.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/b0217df871a5e563646d386327bdd7a393c58ac2.1750571906.git.mchehab+huawei@kernel.org
scripts/sphinx-pre-install

index ad9945ccb0cf2f3d63f017d5e1a7e17701d01a71..2a311ed001796703ec35240b52864e149a624fc2 100755 (executable)
@@ -245,6 +245,10 @@ sub check_missing_tex($)
 
 sub get_sphinx_fname()
 {
+       if ($ENV{'SPHINXBUILD'}) {
+           return $ENV{'SPHINXBUILD'};
+       }
+
        my $fname = "sphinx-build";
        return $fname if findprog($fname);