1#!/bin/sh -
2#	$Id$
3#
4# Build BREW .dsp files.
5
6. RELEASE
7
8SRCFILES=srcfiles.in
9
10s=/tmp/__db_a
11t=/tmp/__db_b
12
13trap 'rm -f $s $t; exit 0' 0
14trap 'rm -f $s $t; exit 1' 1 2 3 13 15
15
16# Build the bdb_s60.mmp file.
17mmp()
18{
19
20	(cat s60/s60.mmp.1;
21	echo;
22	grep -w s60 $SRCFILES | awk '{print $1}' |
23	sed -e 's/^/SOURCE		..\\/' \
24	    -e 's/\//\\/g' |
25	sort;
26	echo;
27	cat s60/s60.mmp.2) > $t
28
29	f=../build_s60/bdb_s60.mmp
30	cmp $t $f > /dev/null 2>&1 ||
31	    (echo "Building $f" && rm -f $f && cp $t $f && chmod 444 $f)
32}
33
34mmp
35
36exit 0
37