#!/bin/csh -f
# this is usually called from the Makefiles...
# it deletes all the files not needed for distribution. Be prepared
# to enter log comments if you are using RCS and have made any changes.
# -val


cd ../..
echo Deleting all object files, and temporary files and executables...

find . \( -name '*core*' -o -name '*.o' -o -name '*~' -o -name '#*#' -o -name '*.BAK' \) -exec rm {} \; -o -fstype nfs -prune

echo Deleting aberd, generate, pfilter, xpp...

cd drv
rm -f src/aberd
rm -f bin/aberd
rm -f bin/aberd.old
rm -f bin/generate
rm -f bin/pfilter
rm -f bin/xpp
rm -f bin/Dump
rm -f utils/generate
rm -f utils/convert
rm -f utils/Dump

echo Deleting non-distributable files...
cd ..
rm -f data/locations data/generrors data/mobiles data/objects
rm -f data/reset.list data/verbs data/zones data/users_data
rm -f data/syslog data/wizlist
rm -f data/TMP/*
rm -f data/REBOOT/*



#uncomment following if you are not using RCS
exit 0

echo Checking in any checked out files...
cd src
foreach i (*.c *.h)
	echo "---->>>> " $i
	ci -q $i
end
