25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
631 B

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