#!/bin/sh
#
# Run this script when you wan't to uninstall the XView stuff,
# or if you won't ever work with XView.
#
# (c) by Valentino Kyriakides
#
# Author: Valentino Kyriakides

echo "This simple script removes some symbolic links"
echo "in /usr/include and /usr/lib to clean up after XView."
echo
echo "Do you really want to remove the XView links (y/n) ? \c"
read ans
case $ans in
  'y'|'Y') 
#
# Uninstall the XView bin stuff
#
rm -f	/usr/bin/X11/clock
rm -f	/usr/bin/X11/olvwm
rm -f	/usr/bin/X11/olwm
rm -f	/usr/bin/X11/olwmslave
rm -f	/usr/bin/X11/props
rm -f	/usr/bin/X11/textedit
rm -f	/usr/bin/X11/dvitool
rm -f	/usr/bin/X11/cmdtool
rm -f	/usr/bin/X11/shelltool
rm -f	/usr/bin/X11/setupXView
rm -f 	/usr/bin/X11/xvcc
#
# Uninstall the XView include stuff
#
rm -f	/usr/include/bitmaps
rm -f   /usr/include/images
rm -f	/usr/include/olgx
rm -f	/usr/include/xview
rm -f	/usr/include/pixrect
#
# Uninstall the XView lib stuff
#
rm -f	/usr/lib/libolgx.a
rm -f	/usr/lib/libxview.a
rm -f	/usr/lib/.text_extras_menu
rm -f	/usr/lib/.textswrc
rm -f	/usr/lib/.ttyswrc
rm -f	/usr/lib/help
rm -rf	/usr/lib/XVdefaultEnv
#
# Uninstall the XView Manpages
#
rm -f	/usr/local/man/man1/clock.1
rm -f 	/usr/local/man/man1/olvwm.1
rm -f 	/usr/local/man/man1/olwmslave.1
rm -f	/usr/local/man/man1/olwm.1
rm -f 	/usr/local/man/man1/textedit.1
rm -f 	/usr/local/man/man1/xvcc.1
rm -f 	/usr/local/man/man3/xview.3
rm -rf  /usr/local/man/man5/olvwmrc.5
echo "All links removed" ;;
  *)
echo "Nothing removed, bye."
esac






