. 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" . else echo "You need to install createrepo" fi