#!/bin/sh
#!/bin/sh
#
# $Source: /home/cur/djb1/archive/bin/RCS/update-logs,v $
#
# $Id: update-logs,v 1.1 1994/08/01 13:23:59 djb1 Exp djb1 $
#
# Update the log files
#


LOGUTILDIR=/www/sbin/logtools

# get the defaults for all dirs.
. $LOGUTILDIR/conf_guess.sh


echo 'Updating logs'
echo

cd $LOGUTILDIR
trap 'rm -f $TMPAREA/last-month$$; rm -f $TMPAREA/this-month$$' 1 2 3 15 17

$TIME $LOGUTILDIR/print-entries --period=last-month > $TMPAREA/last-month$$
$TIME $LOGUTILDIR/sum_slow $TMPAREA/last-month$$ $SUMMARYDIR/last-month-
rm -f $TMPAREA/last-month$$
