#!/bin/sh # # $FreeBSD $ if [ -e $HOME/.sversionrc ]; then OOHOME=`grep %%FRELEASE_NR%% $HOME/.sversionrc \ | sed -e 's/.*file:\/\///'` fi save_common_xcu() { sed 's/^X//' > $OOHOME/tmp/Common.xcu << 'END-of-Common.xcu' X X X X X X X X X X true X X X X X X X X X X X %%mozilla%% X X X X X X X X X END-of-Common.xcu mozilla=`which mozilla`; if [ $? -eq 0 ]; then sed -i orig -e 's#%%mozilla%%#'$mozilla'#g' $OOHOME/tmp/Common.xcu fi mozilla=`which linux-mozilla`; if [ $? -eq 0 ]; then sed -i orig -e 's#%%mozilla%%#'$mozilla'#g' $OOHOME/tmp/Common.xcu fi mv $OOHOME/tmp/Common.xcu $OOHOME/user/registry/data/org/openoffice/Office } # # Set default lang to en_US.ISO8859-15 # if [ ! $LANG ]; then export LANG=en_US.ISO8859-15 fi # # Create soffice.cfg if it does not exist. # if [ ! -z $OOHOME ] && [ -e $OOHOME/setup ]; then if [ ! -e $OOHOME/user/config/soffice.cfg ]; then touch $OOHOME/user/config/soffice.cfg fi fi # # Detect installed mozilla # if [ ! -z $OOHOME ] && [ ! -e $OOHOME/user/registry/data/org/openoffice/Office/Common.xcu ]; then mkdir -p $OOHOME/tmp; save_common_xcu; fi