]> git.ipfire.org Git - thirdparty/git.git/commit
gitweb: fix generation of "gitweb.js"
authorPatrick Steinhardt <ps@pks.im>
Mon, 31 Mar 2025 08:33:08 +0000 (10:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Apr 2025 09:20:44 +0000 (02:20 -0700)
commitc0d3f90ef5da62d3518885af20d095ad4c4532c4
tree53ae2d58622b6a361768ff17081221f1b3791688
parent5a69234b86000650b7f29314f87263d365eec9ac
gitweb: fix generation of "gitweb.js"

In 19d8fe7da65 (Makefile: extract script to generate gitweb.js,
2024-12-06) we have extracted the logic to build "gitweb.js" into a
separate script. As part of that the rules that builds the script
has gained a new dependency on that script.

This refactoring is broken though because we use "$^" to determine
the set of JavaScript files that need to be concatenated, and this
implicit variable now also contains the build script itself. As a
result, the build script ends up ni the generated "gitweb.js" file,
which is wrong.

Fix the issue by filtering out non-JavaScript files.

Based-on-patch-by: Thorsten Glaser <tg@debian.org>
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/Makefile