. locations.include
#Lets customize the isolinux files.  Need to do this now so that they make
#it on the boot.iso which is built in buildinstall .
if [ -s /$TREE/sites/$SITE/build/isolinux/boot.msg ] ; then
 cp /$TREE/sites/$SITE/build/isolinux/boot.msg /$TREE/sites/$SITE/isolinux/boot.msg
fi
if [ -s /$TREE/sites/$SITE/build/isolinux/isolinux.cfg ] ; then
 cp /$TREE/sites/$SITE/build/isolinux/isolinux.cfg /$TREE/sites/$SITE/isolinux/isolinux.cfg
fi
if [ -s /$TREE/sites/$SITE/build/isolinux/splash.lss ] ; then
 cp /$TREE/sites/$SITE/build/isolinux/splash.lss /$TREE/sites/$SITE/isolinux/splash.lss
fi
#
if [ -s $ANACONDADIR/buildinstall ] ; then
   sh -x $ANACONDADIR/buildinstall --pkgorder ../../base/pkgorder --version $VERSION --product "Scientific Linux $VERSION ($SITE)" --discs "1,2,3,4" --release $RELEASE --prodpath sites/$SITE $TREE
else
   echo "You need to have anaconda and anaconda-runtime installed"
   exit 1
fi
if [ ! -d $TREE/images/$SITE ] ; then
  cd $TREE/images
  ln -s ../sites/$SITE/images $SITE 
#else
#  echo "Directory $TREE/images/$SITE  does not exist"
#  exit 1
fi

if [ $ARCH == "ia64" ]; then

 echo "no customized boot images for $ARCH for now..."

else 
 if [ $ARCH == "x86_64" ]; then

  echo "no customized boot images for $ARCH for now..."
 
 else # i386
  echo "no customized boot images for $ARCH for now..."
 fi
fi
