#!/bin/sh
CFG=/etc/custom/apps/openoffice/config
OO=$HOME/.openoffice.org2
DIR=$OO/user/registry/data/org/openoffice

#Mettre une config par defaut si le repertoire n'existe pas
if [ ! -e $OO ];then
  pushd $HOME >/dev/null
  tar xzf $CFG/ooconf.tgz
fi

#Mettre notre configuration particuliere
mkdir -p $DIR/Office/
cp $CFG/Setup.xcu $DIR
cp $CFG/Common.xcu $DIR/Office/
cp $CFG/Linguistic.xcu $DIR/Office/
