Code

Makefile: update check-docs target
authorJunio C Hamano <junkio@cox.net>
Wed, 14 Feb 2007 06:45:22 +0000 (22:45 -0800)
committerJunio C Hamano <junkio@cox.net>
Wed, 14 Feb 2007 06:45:22 +0000 (22:45 -0800)
Old aliases are not linked to the main command list.  Also the internal
git-add--interactive does not need to be on the list.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile

index 40bdcff696f3270ced943945183306fc9899407d..dae29199655455abb4fa960ce4fb5d12ee469e9a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -939,11 +939,14 @@ check-docs::
                case "$$v" in \
                git-merge-octopus | git-merge-ours | git-merge-recursive | \
                git-merge-resolve | git-merge-stupid | \
+               git-add--interactive | git-fsck-objects | git-init-db | \
+               git-repo-config | \
                git-ssh-pull | git-ssh-push ) continue ;; \
                esac ; \
                test -f "Documentation/$$v.txt" || \
                echo "no doc: $$v"; \
-               grep -q "^gitlink:$$v\[[0-9]\]::" Documentation/git.txt || \
+               sed -e '1,/^__DATA__/d' Documentation/cmd-list.perl | \
+               grep -q "^$$v[  ]" || \
                case "$$v" in \
                git) ;; \
                *) echo "no link: $$v";; \