~ubuntu-branches/ubuntu/lucid/openoffice.org-l10n/lucid

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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash

# generate flags for apply.pl - from various pieces ...
# highly dependent on a custom environment ...

bindir=$1
# optional to force another OOBUILDDIR in the split build
builddir=$2

if test "z$bindir" == "z"; then
    echo "Serious error - requires path to bindir"
    exit 1
fi

cd $bindir
source ./setup >& /dev/null

SECTIONS="$OOO_ADDITIONAL_SECTIONS"

# do we use another builddir?
test -n "$builddir" && OOBUILDDIR=$builddir

echo -n "--distro=$DISTRO"

if test -d $OOBUILDDIR/binfilter; then
    SECTIONS="$SECTIONS,Binfilter"
fi
if test -d $OOBUILDDIR/zlib; then
    SECTIONS="$SECTIONS,System"
fi
if test -d $OOBUILDDIR/odk; then
    SECTIONS="$SECTIONS,Sdk"
fi
if test -d $OOBUILDDIR/swext -o -d $OOBUILDDIR/sdext -o -d $OOBUILDDIR/reportbuilder; then
    SECTIONS="$SECTIONS,Extensions"
fi
if test -d $OOBUILDDIR/nlpsolver ; then
    SECTIONS="$SECTIONS,NLPSolver"
fi

# The localize.sdf's are created during the build when they do not exits.
# Additionally, they are created using something like echo > localize.sdf, so
# even test -s is not helpful here :-(
if test -d $OOBUILDDIR/l10n; then
    SECTIONS="$SECTIONS,Localize"
fi

if test "$UNSTABLE_WP" = "YES" ; then
    SECTIONS="$SECTIONS,UnstableWP"
fi
if test "z$PIECE" != "z"; then
    echo -n " --pieces"
    SECTIONS="$SECTIONS,Piece"
fi
if test "$ENABLE_GRAPHITE" = "TRUE"; then
    SECTIONS="$SECTIONS,Graphite"
fi

SECTIONS=`echo $SECTIONS | sed 's/^,//'`

if test -n "$SECTIONS" ; then
    echo -n " --additional-sections=$SECTIONS"
fi

if test "$DEFUZZ_PATCHES" = "YES"; then
    echo -n " --defuzz"
fi