#!/bin/sh
#
#  @(#)r.OWconfig	1.1 98/01/15 
#
# Copyright (c) 1997 by Sun Microsystems, Inc.
# All rights reserved.
#
# Removal script for the server class
# Remove any entries that belong to this package
#
#
while read src
do
	if [ -w $src ]; then
		cp $src /tmp/OWconfig || exit 2
		sed -e "/# XIL\/SunVideo-Plus Extensions - Start/,/# XIL\/SunVideo-Plus Extensions - End/d" /tmp/OWconfig > $src || exit 2
    	fi

	if [ ! -s $src ]; then
		echo "No entries in $src, Removing $src"
		rm -f $src
	fi
done
exit 0
