source: zzuf/trunk/test/check-build @ 3971

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

Add zznop, a small test program to help debug the Win32 port.
Also add check-build from libcaca to test that msvc/config.h is
up to date.

File size: 460 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.