10
10
if test "z$bindir" == "z"; then
11
echo "Serious error - requires path to bindir";
11
echo "Serious error - requires path to bindir"
16
16
source ./setup >& /dev/null
18
SECTIONS="$OOO_ADDITIONAL_SECTIONS"
18
20
# do we use another builddir?
19
21
test -n "$builddir" && OOBUILDDIR=$builddir
21
echo -n "--distro=$DISTRO";
23
echo -n "--distro=$DISTRO"
22
25
if test -d $OOBUILDDIR/binfilter; then
23
echo -n " --distro=Binfilter";
26
SECTIONS="$SECTIONS,Binfilter"
25
28
if test -d $OOBUILDDIR/zlib; then
26
echo -n " --distro=System";
29
SECTIONS="$SECTIONS,System"
28
31
if test -d $OOBUILDDIR/odk; then
29
echo -n " --distro=Sdk";
32
SECTIONS="$SECTIONS,Sdk"
31
34
if test -d $OOBUILDDIR/swext -o -d $OOBUILDDIR/sdext -o -d $OOBUILDDIR/reportbuilder; then
32
echo -n " --distro=Extensions";
35
SECTIONS="$SECTIONS,Extensions"
37
if test -d $OOBUILDDIR/nlpsolver ; then
38
SECTIONS="$SECTIONS,NLPSolver"
35
41
# The localize.sdf's are created during the build when they do not exits.
36
42
# Additionally, they are created using something like echo > localize.sdf, so
37
43
# even test -s is not helpful here :-(
38
if grep 'OpenOffice\.org' $OOBUILDDIR/sw/source/ui/app/localize.sdf > /dev/null 2>&1 ; then
39
echo -n " --distro=Localize";
44
if test -d $OOBUILDDIR/l10n; then
45
SECTIONS="$SECTIONS,Localize"
42
48
if test "$UNSTABLE_WP" = "YES" ; then
43
echo -n " --distro=UnstableWP";
45
if test -n "$OOO_ADDITIONAL_SECTIONS" ; then
46
echo -n " --additional-sections=$OOO_ADDITIONAL_SECTIONS";
49
SECTIONS="$SECTIONS,UnstableWP"
48
51
if test "z$PIECE" != "z"; then
49
echo -n " --pieces --distro=Piece";
53
SECTIONS="$SECTIONS,Piece"
55
if test "$ENABLE_GRAPHITE" = "TRUE"; then
56
SECTIONS="$SECTIONS,Graphite"
59
SECTIONS=`echo $SECTIONS | sed 's/^,//'`
61
if test -n "$SECTIONS" ; then
62
echo -n " --additional-sections=$SECTIONS"
51
65
if test "$DEFUZZ_PATCHES" = "YES"; then
52
66
echo -n " --defuzz"
54
if test "$ENABLE_GRAPHITE" = "TRUE"; then
55
echo -n "--distro=Graphite";