#!/bin/sh

#tlf_cleanup version 0.5.2    2002-05-24

if [ ! -d /tmp/tlf ]; then
	mkdir /tmp/tlf
fi

if [ ! -e wwvfile ]
then
	date >> wwvfile
fi

if [ ! -e clfile ]
then
	date >> clfile
fi

if [ -e clfile ]
then
	tail clfile -n200 > /tmp/tlf/temp
	cp /tmp/tlf/temp clfile 
fi

if [ -e /tmp/tlf/temp ] 
then
	rm /tmp/tlf/temp 
fi
if [ -e /tmp/tlf/cl2file ] 
then 
	rm /tmp/tlf/cl2file 
fi
if [ -e /tmp/tlf/cl3file ] 
then 
	rm /tmp/tlf/cl3file 
fi
if [ -e /tmp/tlf/searchresult ] 
then 
	rm /tmp/tlf/searchresult 
fi
if [ -e /tmp/tlf/tmplogfile ] 
then 
	rm /tmp/tlf/tmplogfile 
fi
if [ -e /tmp/tlf/result ] 
then 
	rm /tmp/tlf/result 
fi

if [ -e /tmp/tlf/tmpfile ] 
then 
	rm /tmp/tlf/tmpfile 
fi
if [ -e /tmp/tlf/prtmpfile ] 
then 
	rm /tmp/tlf/prtmpfile 
fi
if [ -e /tmp/tlf/spotlog ] 
then 
	rm /tmp/tlf/spotlog 
fi 
