# KEHOME/bin/rmsoftexe
# Sep/6/2003

# make soft links to solve Interix .exe problem
# remove soft links to avoid conflicts on Linux system
# remove soft links to avoid conflicts on Windows Cygwin system
#
# usage:
#	rmsoftexe directory
#
# Notes:
#   Interix (Windows SFU 3.0) supports soft links
#   Cygwin supports soft links, and has no .exe problem
#
# CAUTION:
#   If no *.exe files in the directory,
#   and your shell returns *.exe
#   "rm -f ${f%.exe}" removes *
#   (all files in directory !!!)
#

cd $1
for f in *.exe; do
	soft=${f%.exe}
	case soft in
	\*) continue;;
	*)  rm -f $soft;;
	esac
done
