summaryrefslogtreecommitdiff
path: root/dist/s_s60_mmp
blob: f567ee6f6026db5b8d83555607cb43250533690a (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
#!/bin/sh -
#	$Id$
#
# Build BREW .dsp files.

. RELEASE

SRCFILES=srcfiles.in

s=/tmp/__db_a
t=/tmp/__db_b

trap 'rm -f $s $t; exit 0' 0
trap 'rm -f $s $t; exit 1' 1 2 3 13 15

# Build the bdb_s60.mmp file.
mmp()
{

	(cat s60/s60.mmp.1;
	echo;
	grep -w s60 $SRCFILES | awk '{print $1}' |
	sed -e 's/^/SOURCE		..\\/' \
	    -e 's/\//\\/g' |
	sort;
	echo;
	cat s60/s60.mmp.2) > $t

	f=../build_s60/bdb_s60.mmp
	cmp $t $f > /dev/null 2>&1 ||
	    (echo "Building $f" && rm -f $f && cp $t $f && chmod 444 $f)
}

mmp

exit 0