#! /bin/bash

#
# See setup for user tweakables.
#
. ./setup
. $OOBUILDDIR/*.[sS]et.sh
. ./setup

# System Mozilla
if test "$SYSTEM_MOZILLA" = "YES"; then
    export LD_LIBRARY_PATH="$MOZ_LIB":"$LD_LIBRARY_PATH"
fi

# Create RPMs
# http://installation.openoffice.org/how_to_create_native_installer.html
cd $OOBUILDDIR/instsetoo_native/util
dmake openoffice || exit 1

# Summary
echo
echo "Packaging succeeded, the rpms are stored in:"
echo "$OOBUILDDIR/instsetoo_native/unxlngi4.pro/OpenOffice/install/*/RPMS"
