24 lines
433 B
Bash
Executable File
24 lines
433 B
Bash
Executable File
#!/bin/sh
|
|
|
|
failure=0
|
|
|
|
config_h_in=$(dirname "$0")/../config.h.in
|
|
msvc_config_h=$(dirname "$0")/../msvc/config.h
|
|
|
|
for key in $(sed -ne 's/.*#undef *\([A-Za-z0-9_]*\).*/\1/p' "$config_h_in");
|
|
do
|
|
if ! grep '[ef] \<'"$key"'\>' "$msvc_config_h" >/dev/null 2>&1; then
|
|
echo "error: $key missing from msvc/config.h"
|
|
failure=1
|
|
fi
|
|
done
|
|
|
|
if test "$failure" != "0"; then
|
|
exit 1
|
|
else
|
|
echo "0 errors in Win32 config.h"
|
|
fi
|
|
|
|
exit 0
|
|
|