summaryrefslogtreecommitdiff
path: root/db-4.8.30/test/scr035/chk.osdir
blob: 36a2f4e819a7adf01b764d5ddea2869689033550 (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
25
26
27
#!/bin/sh -
#
# $Id$
#
# Check to make sure the @OSDIR@ entries in the Makefile are correct.

d=../../dist

[ -d $d ] || {
	echo 'FAIL: cannot find source distribution directory.'
	exit 1
}

t1=__1
t2=__2

egrep '/@OSDIR@/' $d/Makefile.in | sed -e 's/@.*/.c/' > t1

(cd $d/../os_windows && ls os_*.c) > t2

cmp t1 t2 || {
	echo "Makefile @OSDIR@ mismatch with os_windows files"
	echo "<<< Makefile >>> os_windows"
	diff t1 t2
	exit 1
}
exit 0