#!/bin/sh
#
#  File:       i.OWconfig
#  Project:    XIL
#  Revision:   1.3
#  Last Mod:   13:16:46, 05/31/96
#
#  Description:
#
# Installation script for the OWconfig class.
# If an OWconfig file existed, remove the entries belonging to
# this package and then append the entry belonging to this package.
#
#
#       @(#)i.OWconfig	1.3  96/05/31 (c)  Sun Microsystems, Inc.
#
while read src dst
do
    if [ -r $dst ]
    then
        if [ -w $dst ]
        then
            cp $dst /tmp/OWconfig || exit 2
            sed -e "/# XIL Extensions - Start/,/# XIL Extensions - End/d" /tmp/OWconfig > $dst || exit 2
            cat $src >> $dst || exit 2
        fi
    else
        cat $src >> $dst || exit 2
    fi
done
exit 0

