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

« back to all changes in this revision

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

  • 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.srcfiles,v 1.3 2000/12/12 18:20:59 bostic Exp $
 
4
#
 
5
# Check to make sure we haven't forgotten to add any files to the list
 
6
# of source files Win32 uses to build its dsp files.
 
7
 
 
8
# Run from the top-level directory.
 
9
[ -f db_config.h ] && cd ..
 
10
 
 
11
f=dist/srcfiles.in
 
12
t1=/tmp/__1
 
13
t2=/tmp/__2
 
14
 
 
15
sed -e '/^[     #]/d' \
 
16
    -e '/^$/d' < $f |
 
17
    awk '{print $1}' > ${t1}
 
18
find . -type f |
 
19
    sed -e 's/^\.\///' |
 
20
    egrep '\.c$|\.cpp$|\.def$|\.rc$' |
 
21
    sed -e '/dist\/build\/chk.def/d' \
 
22
        -e '/perl.DB_File\/version.c/d' |
 
23
    sort > ${t2}
 
24
 
 
25
cmp ${t1} ${t2} > /dev/null ||
 
26
(echo "<<< srcfiles.in >>> existing files" && \
 
27
    diff ${t1} ${t2} | tee /tmp/_f)
 
28
 
 
29
rm -f ${t1} ${t2}