
:
#     Copyright (c) 1989             The Santa Cruz Operation, Inc. 
#  								     
#     All rights reserved. No part of this program or publication may
#     be reproduced, transmitted, transcribed, stored in a retrieval
#     system, or translated into any language or computer language,
#     in any form or by any means, electronic, mechanical, magnetic, 
#     optical, chemical, biological, or otherwise, without the prior 
#     written permission of:    			            
#  								   
#             The Santa Cruz Operation, Inc      (408) 425-7222   
#             400 Encinal St., Santa Cruz, California 95061 USA    
#  								  
#


CLASS=ScoSession
PATH="/usr/bin/X11:$PATH"
SCO_DEFAULTS="/usr/lib/X11/sco/app-defaults"
ODTPREF_DIR="$HOME/.odtpref"
CONFIG_DIR="$ODTPREF_DIR/$CLASS"
XRDBCOMP="/usr/lib/X11/sco/ScoSession/xrdbcomp"
XRDBSTART=$DISPLAY
XRDBSAVE=xrdb.save
XRDBSTOP=xrdb.stop

export PATH CLASS SCO_DEFAULTS ODTPREF_DIR CONFIG_DIR XRDBCOMP XRDBSTART
export XRDBSAVE XRDBSTOP




#
#  Save any modifications user has made to xrdb.
#

SaveXrdb ()
{

    rm -f $CONFIG_DIR/$XRDBSTOP
    xrdb -query > $CONFIG_DIR/$XRDBSTOP

    rm -f $CONFIG_DIR/$XRDBSAVE 

    $XRDBCOMP 	\
	$CONFIG_DIR/$XRDBSTOP \
	$CONFIG_DIR/$XRDBSTART \
	$CONFIG_DIR/$XRDBSAVE

    rm -f $CONFIG_DIR/$XRDBSTART 


}






#
#   main
#

[ -d $CONFIG_DIR ] || mkdir -p $CONFIG_DIR
SaveXrdb
exit 0

