. locations.include
up1=`dirname $TREE`
up2=`dirname $up1`
if [ -x /usr/bin/createrepo ] ; then 
  #
  # 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
