#!/bin/sh
#
#  Run me on the server.
#
ARCH=i386
#
#  Where the RedHat update packages are stored.
#
RHU_PKG_DIR=/mit/linux/redhat/current/$ARCH/updates
#
#  Where the Athena packages are stored.
#
ATH_PKG_DIR=/mit/linux/packages/current/RPMS/$ARCH
#
#  Where all packages are stored on the server.
#
SERVER_ROOT=/redhat/current/$ARCH
#
#  The program that copies the changed packages.
#
UPDATE=/mit/linux/devel/redhat/install/server/bin/update.pl
#
#  The program that generates hdlist and uglist.
#
GENHDLIST=/mit/linux/bin/genhdlist
#
#  The three commands to run.
#
cd $RHU_PKG_DIR; $UPDATE -v $SERVER_ROOT/RedHat/RPMS
cd $ATH_PKG_DIR; $UPDATE -v $SERVER_ROOT/RedHat/RPMS
$GENHDLIST $SERVER_ROOT
