#       "@(#)i.OWconfig	1.2 04/06/15   Sun Microsystems" 
#
# Installation script for the OWconfig class.
# If an OWconfig file exists, remove entries belonging to this package
# and then append the OWconfig file that we're installing to the existing one.
#
while	read src dst
do
	if [ -f /tmp/$$OWconfig ] ; then
		rm -f /tmp/$$OWconfig
	fi
	if [ -r $dst ] ; then
		sed -e "/# Start SUNWxwxst/,/# End SUNWxwxst/d" $dst \
		> /tmp/$$OWconfig || exit 2
	fi
	cat $src >> /tmp/$$OWconfig || exit 2
	mv /tmp/$$OWconfig $dst || exit 2
	chgrp bin $dst
done
exit 0
