#!/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/kerberos/bin:/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin
export PATH
DIST=ifhp
for i in `echo ${DIST}*[0-9]` ; do echo RM $i; mv $i x.$i ; rm -rf x.$i & done;
echo REMOVE /usr/src/redhat/SRPM/${DIST}*tgz /usr/src/redhat/RPMS/*/${DIST}*rpm
rm -f /usr/src/redhat/SRPM/${DIST}*tgz /usr/src/redhat/RPMS/*/${DIST}*rpm
f=`ls /usr/src/redhat/SOURCES/${DIST}*tgz | tail -1`
echo Using $f
if [ -n "$f" ] ; then
	tar zxvf $f
	cd ${DIST}*/D*/RP*
	make checkit doU
fi
