~ubuntu-branches/ubuntu/edgy/rpm/edgy

« back to all changes in this revision

Viewing changes to db/dist/build/chk.def

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2002-01-22 20:56:57 UTC
  • Revision ID: james.westby@ubuntu.com-20020122205657-l74j50mr9z8ofcl5
Tags: upstream-4.0.3
ImportĀ upstreamĀ versionĀ 4.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -
 
2
#
 
3
# $Id: chk.def,v 1.5 2001/04/11 16:26:45 bostic Exp $
 
4
#
 
5
# Check to make sure we haven't forgotten to add any interfaces
 
6
# to the Win32 libdb.def file.
 
7
 
 
8
# Run from the top-level directory.
 
9
[ -f db_config.h ] && cd ..
 
10
 
 
11
f=build_win32/libdb.def
 
12
t1=/tmp/__1
 
13
t2=/tmp/__2
 
14
 
 
15
sed '/; /d' $f |
 
16
    egrep @ |
 
17
    awk '{print $1}' |
 
18
    sed -e '/db_xa_switch/d' \
 
19
        -e '/^__/d' -e '/^;/d' |
 
20
    sort > ${t1}
 
21
 
 
22
egrep __P include_auto/global_ext.in |
 
23
    sed '/^[a-z]/!d' |
 
24
    awk '{print $2}' |
 
25
    sed 's/^\*//' |
 
26
    sed '/^__/d' | sort > ${t2}
 
27
 
 
28
if cmp -s ${t1} ${t2} ; then
 
29
        :
 
30
else
 
31
        echo "<<< libdb.def >>> DB include files"
 
32
        diff ${t1} ${t2}
 
33
fi
 
34
 
 
35
# Check to make sure we don't have any extras in the libdb.def file.
 
36
sed '/; /d' $f |
 
37
    egrep @ |
 
38
    awk '{print $1}' |
 
39
    sed -e '/__db_global_values/d' > ${t1}
 
40
 
 
41
for i in `cat ${t1}`; do
 
42
        if egrep $i */*.c > /dev/null; then
 
43
                :
 
44
        else
 
45
                echo "$f: $i not found in DB sources"
 
46
        fi
 
47
done
 
48
 
 
49
rm -f ${t1} ${t2}