summaryrefslogtreecommitdiff
path: root/Documentation/Makefile
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-08-08 20:57:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-08-08 21:32:17 (GMT)
commit5fafce0b782dabc48e47828bde5478a15040298f (patch)
tree8c9e526f6ce6ca5dc09e91f6436c461e0a1f42cb /Documentation/Makefile
parent7d02b574f40b33d6abfecf8fed98cee94a738071 (diff)
downloadgit-5fafce0b782dabc48e47828bde5478a15040298f.zip
git-5fafce0b782dabc48e47828bde5478a15040298f.tar.gz
git-5fafce0b782dabc48e47828bde5478a15040298f.tar.bz2
check-docs: get documented command list from Makefile
The current code tries to get a list of documented commands by doing "ls Documentation/git*txt" and culling a bunch of special cases from the result. Looking for "git-*.txt" would be more accurate, but would miss a few commands like "gitweb" and "gitk". Fortunately, Documentation/Makefile already knows what this list is, so we can just ask it. Annoyingly, we still have to post-process its output a little, since make will print extra cruft like "GIT-VERSION-FILE is up to date" to stdout. Now that our list is accurate, we can remove all of the ugly special-cases. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/Makefile')
-rw-r--r--Documentation/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile
index 063fa69..cf5916f 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -344,4 +344,7 @@ require-htmlrepo::
quick-install-html: require-htmlrepo
'$(SHELL_PATH_SQ)' ./install-doc-quick.sh $(HTML_REPO) $(DESTDIR)$(htmldir)
+print-man1:
+ @for i in $(MAN1_TXT); do echo $$i; done
+
.PHONY: FORCE