. locations.include if [ -x /usr/bin/yum-arch ] ; then # make main site yum headers cd $TREE/sites/$SITE/Updates echo "Making yum headers for `pwd`" if [ -s ../base/comps.xml ] ; then createrepo -x comps -g ../base/comps.xml . else createrepo . fi repoview -t "Scientific Linux Fermi $VERSION $ARCH Base" . yum-arch . # make errata site yum headers cd $TREE/sites/$SITE/errata/$SITE/RPMS echo "Making yum headers for `pwd`" createrepo . repoview -t "Scientific Linux Fermi $VERSION $ARCH Errata" . yum-arch -l . if [ -d $TREE/sites/$SITE/contrib/RPMS ] ; then # make contrib site yum headers if contrib exists cd $TREE/sites/$SITE/contrib/RPMS echo "Making yum headers for `pwd`" createrepo . repoview -t "Scientific Linux Fermi $VERSION $ARCH Contrib" . yum-arch -l . fi else echo "You need to install the yum package" fi