:
# NAME:
#	cleanup - clean up after regression tests
#
# DESCRIPTION:
#	
# AUTHOR:
#	Simon J. Gerraty <sjg@crufty.net>

# RCSid:
#	$Id: cleanup,v 1.10 2023/06/10 20:36:42 sjg Exp $
#
#	@(#) Copyright (c) 1997-2022 Simon J. Gerraty.
#
#	This file is provided in the hope that it will
#	be of use.  There is absolutely NO WARRANTY.
#	Permission to copy, redistribute or otherwise
#	use this file is hereby granted provided that 
#	the above copyright notice and this notice are
#	left intact. 
#      
#	Please send copies of changes and bug-fixes to:
#	sjg@crufty.net
#

Myname=cleanup

. debug.sh

DebugOn cleanup

if test "x$NO_NAMED" = x; then
	test "$ND_PID" && kill $ND_PID 2>/dev/null
	if test -s "$ND_LOG"; then
#		test "$DEBUGGING" && cat $ND_LOG
		$DEBUG_SKIP rm -f $ND_LOG $ND_LOG.*
	fi
fi
test "$ESTS_FILE" && echo 0 > $ESTS_FILE
exit 0	# if we got this far...
