8 @\$(foreach b,\$($1),echo XXX \$(b:\$X=) YYY;)
11 make -C ..
-f - print_variable
2>/dev
/null |
12 sed -n -e 's/.*XXX \(.*\) YYY.*/\1/p'
15 check_missing_docs
() (
18 for v
in $ALL_COMMANDS
21 git-merge-octopus
) continue;;
22 git-merge-ours
) continue;;
23 git-merge-recursive
) continue;;
24 git-merge-resolve
) continue;;
25 git-merge-subtree
) continue;;
26 git-fsck-objects
) continue;;
27 git-init-db
) continue;;
28 git-remote-
*) continue;;
30 git-legacy-
*) continue;;
31 git-?
*--?
* ) continue ;;
40 if ! sed -e '1,/^### command list/d' -e '/^#/d' ..
/command-list.txt |
57 check_extraneous_docs
() {
59 sed -e '1,/^### command list/d' \
64 -e 's/^/listed /' ..
/command-list.txt
67 sed -e 's|^|documented |' \
70 all_commands
="$(printf "%s
" "$ALL_COMMANDS" "$BUILT_INS" "$EXCLUDED_PROGRAMS" | tr '\n' ' ')"
75 case " $all_commands " in
78 echo "removed but $how: $cmd"
87 BUILT_INS
="$(extract_variable BUILT_INS)"
88 ALL_COMMANDS
="$(extract_variable ALL_COMMANDS)"
89 EXCLUDED_PROGRAMS
="$(extract_variable EXCLUDED_PROGRAMS)"
92 if ! check_missing_docs
97 if ! check_extraneous_docs
106 printf "%s" "$findings" |
sort