#!/bin/sh
#
# @(#)i.OWconfig	1.1 98/01/15 
#
# Copyright (c) 1997 by Sun Microsystems, Inc.
# All rights reserved.
#
# 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.
#
#
while read src dst
do
    if [ -r $dst ]
    then
        if [ -w $dst ]
        then
            cp $dst /tmp/OWconfig || exit 2
            sed -e "/# XIL\/SunVideo-Plus Extensions - Start/,/# XIL\/SunVideo-Plus Extensions - End/d" /tmp/OWconfig > $dst || exit 2
            cat $src >> $dst || exit 2
        fi
    else
        cat $src >> $dst || exit 2
    fi
done
exit 0

