THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Git Source Code Mirror - This is a publish-only repository and all pull requests are ignored. Please follow Documentation/SubmittingPatches procedure for any of your improvements.
git
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
596B

  1. #!/bin/sh
  2. {
  3. cat <<\EOF
  4. sayIt:
  5. $(foreach b,$(BUILT_INS),echo XXX $(b:$X=) YYY;)
  6. EOF
  7. cat Makefile
  8. } |
  9. make -f - sayIt 2>/dev/null |
  10. sed -n -e 's/.*XXX \(.*\) YYY.*/\1/p' |
  11. sort |
  12. {
  13. bad=0
  14. while read builtin
  15. do
  16. base=$(expr "$builtin" : 'git-\(.*\)')
  17. x=$(sed -ne 's/.*{ "'$base'", \(cmd_[^, ]*\).*/'$base' \1/p' git.c)
  18. if test -z "$x"
  19. then
  20. echo "$base is builtin but not listed in git.c command list"
  21. bad=1
  22. fi
  23. for sfx in sh perl py
  24. do
  25. if test -f "$builtin.$sfx"
  26. then
  27. echo "$base is builtin but $builtin.$sfx still exists"
  28. bad=1
  29. fi
  30. done
  31. done
  32. exit $bad
  33. }