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.
 
 
 
 
 
 

31 line
575 B

  1. #!/bin/sh
  2. ret=0
  3. #
  4. # Check that the Win32 config.h is in sync with config.h.in
  5. #
  6. config_h_in=$(dirname "$0")/../config.h.in
  7. win32_config_h=$(dirname "$0")/../win32/config.h
  8. nfails=0
  9. ntokens=0
  10. for key in $(sed -ne 's/.*#undef *\([A-Za-z0-9_]*\).*/\1/p' "$config_h_in");
  11. do
  12. ntokens=$(($ntokens + 1))
  13. if ! grep '[ef] \<'"$key"'\>' "$win32_config_h" >/dev/null 2>&1; then
  14. echo "error: $key missing from win32/config.h"
  15. nfails=$(($nfails + 1))
  16. fi
  17. done
  18. echo "$ntokens tokens, $nfails errors in Win32 config.h"
  19. if test "$nfails" != "0"; then
  20. exit 1
  21. fi
  22. exit 0