| Revision 4320,
501 bytes
checked in by sam, 3 years ago
(diff) |
|
Split check-build into check-doygen, check-source and check-win32.
|
-
Property svn:executable set to
*
|
| Rev | Line | |
|---|
| [4320] | 1 | #!/bin/sh |
|---|
| 2 | |
|---|
| 3 | ret=0 |
|---|
| 4 | |
|---|
| 5 | # |
|---|
| 6 | # Check that the Win32 config.h is in sync with config.h.in |
|---|
| 7 | # |
|---|
| 8 | |
|---|
| 9 | config_h_in=$(dirname "$0")/../config.h.in |
|---|
| 10 | win32_config_h=$(dirname "$0")/../win32/config.h |
|---|
| 11 | |
|---|
| 12 | failure=0 |
|---|
| 13 | for key in $(sed -ne 's/.*#undef *\([A-Za-z0-9_]*\).*/\1/p' "$config_h_in"); |
|---|
| 14 | do |
|---|
| 15 | if ! grep '[ef] \<'"$key"'\>' "$win32_config_h" >/dev/null 2>&1; then |
|---|
| 16 | echo "error: $key missing from win32/config.h" |
|---|
| 17 | failure=1 |
|---|
| 18 | fi |
|---|
| 19 | done |
|---|
| 20 | |
|---|
| 21 | if test "$failure" != "0"; then |
|---|
| 22 | exit 1 |
|---|
| 23 | fi |
|---|
| 24 | |
|---|
| 25 | echo "0 errors in Win32 config.h" |
|---|
| 26 | exit 0 |
|---|
| 27 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.