check-win32 (libcaca-0.99.beta19) | : | check-win32 (libcaca-0.99.beta20.tar.bz2) | ||
---|---|---|---|---|
#!/bin/sh | #!/bin/sh | |||
ret=0 | export MAKEFLAGS="" | |||
top_srcdir="$(make -s echo-topdir)" | ||||
# | # | |||
# Check that the Win32 config.h is in sync with config.h.in | # Check that the Win32 config.h is in sync with config.h.in | |||
# | # | |||
config_h_in=$(dirname "$0")/../config.h.in | config_h_in="${top_srcdir}/config.h.in" | |||
win32_config_h=$(dirname "$0")/../win32/config.h | win32_config_h="${top_srcdir}/build/win32/config.h" | |||
nfails=0 | nfails=0 | |||
ntokens=0 | ntokens=0 | |||
for key in $(sed -ne 's/.*#undef *\([A-Za-z0-9_]*\).*/\1/p' "$config_h_in"); | for key in $(sed -ne 's/.*#undef *\([A-Za-z0-9_]*\).*/\1/p' "$config_h_in"); | |||
do | do | |||
ntokens=$(($ntokens + 1)) | ntokens=$(($ntokens + 1)) | |||
if ! grep '[ef] \<'"$key"'\>' "$win32_config_h" >/dev/null 2>&1; then | if ! grep '[ef] \<'"$key"'\>' "$win32_config_h" >/dev/null 2>&1; then | |||
echo "error: $key missing from win32/config.h" | echo "error: $key missing from build/win32/config.h" | |||
nfails=$(($nfails + 1)) | nfails=$(($nfails + 1)) | |||
fi | fi | |||
done | done | |||
echo "$ntokens tokens, $nfails errors in Win32 config.h" | echo "$ntokens tokens, $nfails errors in Win32 config.h" | |||
if test "$nfails" != "0"; then | if test "$nfails" != "0"; then | |||
exit 1 | exit 1 | |||
fi | fi | |||
End of changes. 3 change blocks. | ||||
4 lines changed or deleted | 5 lines changed or added |