Skip to content

Commit 7c3bd71

Browse files
dschogitster
authored andcommitted
check-docs: allow command-list.txt to contain excluded commands
Among other things, the `check-docs` target ensures that `command-list.txt` no longer contains commands that were dropped (or that were never added in the first place). To do so, it compares the list of commands from that file to the commands listed in `$(ALL_COMMANDS)`. However, some build options exclude commands from the latter. Fix the target to handle this situation correctly by taking the just-introduced `$(EXCLUDED_PROGRAMS)` into account. Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 724d635 commit 7c3bd71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3089,7 +3089,7 @@ check-docs::
30893089
-e 's/\.txt//'; \
30903090
) | while read how cmd; \
30913091
do \
3092-
case " $(patsubst %$X,%,$(ALL_COMMANDS)) " in \
3092+
case " $(patsubst %$X,%,$(ALL_COMMANDS) $(EXCLUDED_PROGRAMS)) " in \
30933093
*" $$cmd "*) ;; \
30943094
*) echo "removed but $$how: $$cmd" ;; \
30953095
esac; \

0 commit comments

Comments
 (0)