summaryrefslogtreecommitdiff
path: root/storage/bdb/test/scr011/chk.tags
blob: 14a3c4e011dd0a2972e906a8452a6971cdd0d272 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh -
#
# $Id: chk.tags,v 1.10 2001/10/12 17:55:36 bostic Exp $
#
# Check to make sure we don't need any more symbolic links to tags files.

d=../..

# Test must be run from the top-level directory, not from a test directory.
[ -f $d/LICENSE ] || {
	echo 'FAIL: cannot find source distribution directory.'
	exit 1
}

t1=__1
t2=__2

(cd $d && ls -F | egrep / | sort |
    sed -e 's/\///' \
	-e '/^CVS$/d' \
	-e '/^build_vxworks$/d' \
	-e '/^build_win32$/d' \
	-e '/^docs$/d' \
	-e '/^docs_book$/d' \
	-e '/^docs_src$/d' \
	-e '/^java$/d' \
	-e '/^perl$/d' \
	-e '/^test$/d' \
	-e '/^test_cxx$/d' \
	-e '/^test_purify$/d' \
	-e '/^test_thread$/d' \
	-e '/^test_vxworks$/d') > $t1

(cd $d && ls */tags | sed 's/\/tags$//' | sort) > $t2
if diff $t1 $t2 > /dev/null; then
	exit 0
else
	echo "<<< source tree >>> tags files"
	diff $t1 $t2
	exit 1
fi