. locations.include up1=`dirname $TREE` up2=`dirname $up1` if [ -x /usr/bin/createrepo ] ; then # # cd $TREE/$SITEDIR/$SITERPMDIR if [ -d .olddata ] ; then /bin/rm -r .olddata fi echo "Making yum headers for `pwd`" if [ -s repodata/comps-site.xml ] ; then echo "Using repodata/comps-site.xml with -g option to createrepo" createrepo -g repodata/comps-site.xml . else createrepo . fi if [ -d .olddata ] ; then /bin/rm -r .olddata fi repoview -t "Scientific Linux $SITE $VERSION $ARCH Base" . else echo "You need to install createrepo" fi