summaryrefslogtreecommitdiff
path: root/tests/ansi.test
blob: 0e133c29802ac1e33f2bdfae336fea950223e0d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /bin/sh

# Test for bug where ansi2knr.c is not included in distribution.
# From François Pinard.

. $srcdir/defs || exit 1

cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = ansi2knr
magic:
	@echo $(DISTFILES)
END

cat >> configure.in << 'END'
AM_C_PROTOTYPES
END

: > ansi2knr.c
: > ansi2knr.1

$AUTOMAKE || exit 1

fgrep -v @SET_MAKE@ Makefile.in > Makefile.sed
$MAKE -s -f Makefile.sed SHELL=/bin/sh magic | grep 'ansi2knr\.c'