source: libcaca/trunk/test/check-win32 @ 4320

Last change on this file since 4320 was 4320, checked in by sam, 5 years ago

Split check-build into check-doygen, check-source and check-win32.

  • Property svn:executable set to *
File size: 501 bytes
Line 
1#!/bin/sh
2
3ret=0
4
5#
6# Check that the Win32 config.h is in sync with config.h.in
7#
8
9config_h_in=$(dirname "$0")/../config.h.in
10win32_config_h=$(dirname "$0")/../win32/config.h
11
12failure=0
13for key in $(sed -ne 's/.*#undef *\([A-Za-z0-9_]*\).*/\1/p' "$config_h_in");
14do
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
19done
20
21if test "$failure" != "0"; then
22  exit 1
23fi
24
25echo "0 errors in Win32 config.h"
26exit 0
27
Note: See TracBrowser for help on using the repository browser.