2007-03-10 19:04:07 +00:00
|
|
|
#!/bin/sh -
|
|
|
|
#
|
|
|
|
# Check to make sure we haven't forgotten to add any files to the list
|
|
|
|
# of source files Win32 uses to build its dsp files.
|
|
|
|
|
|
|
|
d=../..
|
|
|
|
|
|
|
|
[ -f $d/LICENSE ] || {
|
|
|
|
echo 'FAIL: cannot find source distribution directory.'
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2009-09-01 13:53:56 +00:00
|
|
|
[ -d $d/build_win32 ] || exit 0
|
|
|
|
|
2007-03-10 19:04:07 +00:00
|
|
|
f=$d/dist/srcfiles.in
|
|
|
|
t1=__1
|
|
|
|
t2=__2
|
|
|
|
|
2009-09-01 13:53:56 +00:00
|
|
|
trap 'rm -f $t1 $t2' 0 1 2 3 13 15
|
|
|
|
|
2007-03-10 19:04:07 +00:00
|
|
|
sed -e '/^[ #]/d' \
|
|
|
|
-e '/^$/d' < $f |
|
|
|
|
awk '{print $1}' > $t1
|
|
|
|
find $d -type f |
|
|
|
|
sed -e 's/^\.\.\/\.\.\///' \
|
|
|
|
-e '/_\//d' \
|
|
|
|
-e '/^build[^_]/d' \
|
|
|
|
-e '/^test\//d' | \
|
|
|
|
egrep '\.c$|\.cpp$|\.def$|\.rc$' |
|
|
|
|
sort > $t2
|
|
|
|
|
|
|
|
cmp $t1 $t2 > /dev/null || {
|
|
|
|
echo "<<< srcfiles.in >>> existing files"
|
|
|
|
diff $t1 $t2
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
exit 0
|