#!/bin/zsh
#
# Copyright Jonathan Norman 2008
#

export RELEASE_NAME="Felix"
export RELEASE_VER="2008.08"

export RPMS_TOP="/root/RPMS"
export ARCH=i686

export TOP="/root/scripts"

if [ ! $DESTDIR ];then
echo -e "Please enter the mount point you wish to install Blue Square Linux to (e.g. /mnt/hda) : \c "
read DESTDIR

	if [ ! $DESTDIR ];then
	echo "Destination is not set. Quiting the installation script..."
	exit 1
	else
	export DESTDIR=$DESTDIR
	echo "Running the installation script in $DESTDIR"
	fi
else
echo "Running the installation script in $DESTDIR"
fi

$TOP/create-things.sh
$TOP/interactive.sh
$TOP/rpm-install.sh
$TOP/bootscripts.sh

cp $TOP/chroot.sh $DESTDIR
chmod +x $DESTDIR/chroot.sh
chroot $DESTDIR /chroot.sh 

echo "The installation scripts have finished."

