# #####################################################################
# Open Text Exceed onDemand Client 8
# Copyright (c) 1997-2011 Open Text Corporation. All Rights Reserved.
# #####################################################################
# cde_cleanup
# Pre-uninstall cleanup for CDE
# $Revision: 7613 $
# #####################################################################

. utils/cde_utils

cde_uninstall_these_icons()
{
	for iconFile in `ls ${1}.?.?m`
	do  
	  [ -f "${iconFile}" ] && try rm -f "${iconFile}"
	done
}

cde_uninstall_icons()
{
  cde_uninstall_icons_here=`pwd`

  cd ${dt_icons_dir} 
  
  cde_uninstall_these_icons "${dt_eodiconname}"
  cde_uninstall_these_icons "${dt_eod_document_iconname}"  
  
  cd ${cde_uninstall_icons_here}
}

cde_uninstall()
{
	cde_settings

	for thisFile in \
	  "${dt_actionfile}" \
	  "${dt_frontpanelfile}" \
	  "${dt_applinkfile}"
	do
	  [ -f "${thisFile}" ] && try rm -f "${thisFile}"
	done

  cde_uninstall_icons

	# make our changes show up without having to re-login
	cde_reloadactions
}

