source: libcaca/trunk/tests/check-build @ 3910

Last change on this file since 3910 was 3907, checked in by Sam Hocevar, 10 years ago

Add a test for win32/config.h synchronisation.

  • Property svn:executable set to *
File size: 437 bytes
Line 
1#!/bin/sh
2
3failure=0
4
5config_h_in=$(dirname "$0")/../config.h.in
6win32_config_h=$(dirname "$0")/../win32/config.h
7
8for key in $(sed -ne 's/.*#undef *\([A-Za-z0-9_]*\).*/\1/p' "$config_h_in");
9do
10  if ! grep '[ef] \<'"$key"'\>' "$win32_config_h" >/dev/null 2>&1; then
11    echo "error: $key missing from win32/config.h"
12    failure=1
13  fi
14done
15
16if test "$failure" != "0"; then
17  exit 1
18else
19  echo "0 errors in Win32 config.h"
20fi
21
22exit 0
23
Note: See TracBrowser for help on using the repository browser.