Add BSD license file
[platform/upstream/db4.git] / dist / s_s60_mmp
1 #!/bin/sh -
2 #       $Id$
3 #
4 # Build BREW .dsp files.
5
6 . RELEASE
7
8 SRCFILES=srcfiles.in
9
10 s=/tmp/__db_a
11 t=/tmp/__db_b
12
13 trap 'rm -f $s $t; exit 0' 0
14 trap 'rm -f $s $t; exit 1' 1 2 3 13 15
15
16 # Build the bdb_s60.mmp file.
17 mmp()
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
34 mmp
35
36 exit 0