#!/bin/csh -f
echo "Purging type $1 from directory $2"
if (! -d ${2} ) then
  echo "SYSERR: Directory ${2} does not exist."
  exit
endif
pushd $2 >& /dev/null
date >> ../log/del_${1}.log
../../../bin/delobjs ../../misc/players *.${1} >> ../log/del_${1}.log
popd >& /dev/null