. locations.include
#These need to be done each time you want to make new install images
if [ $ARCH != `uname -i` ] ; then
  echo "You seem to be trying to build arch $ARCH , on a `uname -i` system"
  echo "exiting"
  exit 1
fi
echo "Do you want to build new install images? y or n"
read answer
if [ $answer = "y" ] ; then
	echo "You indicated you wanted to make new install images, making them now."
	echo "Your new install images will be in ../../images/"
#        echo "Creating hdlist now "
#        ./build.hdlist.site.sh
	./build.release.site.sh
#	./make.updates.img.sh
#	./make.products.img.sh
fi
# These should be done just before rsyncing up
echo "Creating comps.rpm now"
cd $RELEASEDIR/$ARCH/sites/$SITE/base/
sh scripts/subscripts/make.comps.rpm.sh
cd ../build/scripts 
#echo "Creating hdlist "
#./build.hdlist.site.sh
echo "Creating rpmdb rpm "
./make.rpmdb-site.sh
#echo "You need to sign the rpmdb-Fermi rpm,  I will wait here until you get back"
#echo "rpm is at $RELEASEDIR/$ARCH/sites/$SITE/Updates/rpmdb-Fermi*rpm"
#read me
#echo "Updating yum area "
#./makeyum.site.sh
#if [ "$cdiso" = "y" ] ; then
#	echo "making the cd isos"
#	cd buildisoimages
#	sh make.cdisos.sh
#else
#	echo "skipping the making of the cd isos"
#fi
