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.
 
 
 
 
 
 

28 lines
501 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. failure=0
  9. for key in $(sed -ne 's/.*#undef *\([A-Za-z0-9_]*\).*/\1/p' "$config_h_in");
  10. do
  11. if ! grep '[ef] \<'"$key"'\>' "$win32_config_h" >/dev/null 2>&1; then
  12. echo "error: $key missing from win32/config.h"
  13. failure=1
  14. fi
  15. done
  16. if test "$failure" != "0"; then
  17. exit 1
  18. fi
  19. echo "0 errors in Win32 config.h"
  20. exit 0