#! /bin/sh -
#
# 5799-WZQ (C) COPYRIGHT = NONE
# LICENSED MATERIALS - PROPERTY OF IBM
#
# $Header:weekly 12.0$ 
# $ACIS:weekly 12.0$ 
# $Source: /ibm/acis/usr/src/usr.adm/RCS/weekly,v $ 

echo "Subject: weekly run output"

#echo ""
#echo "Removing old .o files:"
#find /usr/src -name '*.o' -atime +21 -print -a -exec rm -f {} \;

echo ""
echo "Cleaning up UUCP:"
su uucp << EOF
	sh /usr/lib/uucp/clean.weekly
EOF

echo ""
echo "Rotating messages:"
cd /usr/adm
mv messages.2 messages.3
mv messages.1 messages.2
mv messages.0 messages.1
mv messages   messages.0
cp /dev/null  messages
chmod 644 messages
kill -1 `cat /etc/syslog.pid`
cd /

# Uncomment the next 3 lines to produce cat'able man pages in /usr/man/cat*.
# echo ""
# echo "Rebuilding catman:"
# /etc/catman

echo ""

# The update of the find database has been moved back into
# crontab because the user "nobody" has no shell and breaks su.
# echo "Rebuilding find database:"
# su nobody << EOF
#	/usr/lib/find/updatedb
# EOF
