#!/bin/sh

#
# See setup for user tweakables.
#
. ./setup

# Copy all splash artwork into offmgr regardless
mkdir -p $OOBUILDDIR/offmgr/res
cp $TOOLSDIR/src/openabout_*.bmp $OOBUILDDIR/offmgr/res/
cp $TOOLSDIR/src/openintro_*.bmp $OOBUILDDIR/offmgr/res/

if test "z$BUILD_WIN32" = "z"; then
    echo "Installing / scaling icons";
    $TOOLSDIR/bin/scale-icons $OOBUILDDIR || echo "Error: scaling failed";
    echo "done icon scaling";
else
    echo "Copying scaled icons in please wait ..."
    cp -Rf $BUILDDIR/$OOO_SCALED_ICONS_VER/* $OOBUILDDIR || echo "Scaled icon copy failed"
    cp -f $TOOLSDIR/src/file-bug-16.bmp $OOBUILDDIR/res/sc05406.bmp
    cp -f $TOOLSDIR/src/file-bug-24.bmp $OOBUILDDIR/res/lc05406.bmp
    echo "Copied Win32 bug-work into the tree";
fi

cp -Rvf $BUILDDIR/$OOO_ICONS_VER/* $OOBUILDDIR || echo "Icon copy failed";

cp -vf $TOOLSDIR/fonts/opens___.ttf $OOBUILDDIR/extras/source/truetype/symbol || echo "font copy failed";
echo "Copied new opensymbol font into the tree";
