. locations.include up1=`dirname $TREE` up2=`dirname $up1` if [ -x /usr/bin/createrepo ] ; then # # Do the base SL RPMS # cd $TREE/$DEFAULT if [ -d .olddata ] ; then /bin/rm -r .olddata fi echo "Making yum headers for `pwd`" if [ -s repodata/comps-sl.xml ] ; then createrepo -g repodata/comps-sl.xml . else createrepo . fi if [ -d .olddata ] ; then /bin/rm -r .olddata fi repoview -t "Scientific Linux" . # # Do the errata RPMS # cd $TREE/updates/security if [ -d .olddata ] ; then /bin/rm -r .olddata fi echo "Making yum headers for `pwd`" createrepo . if [ -d .olddata ] ; then /bin/rm -r .olddata fi repoview -t "Scientific Linux Errata" . # # Do the contrib RPMS # cd $TREE/contrib echo "Making yum headers for `pwd`" if [ -d .olddata ] ; then /bin/rm -r .olddata fi if [ -s comps-contrib.xml ] ; then createrepo -g comps-contrib.xml . else createrepo . fi if [ -d .olddata ] ; then /bin/rm -r .olddata fi repoview -t "Scientific Linux Contrib" . else echo "You need to install createrepo" fi