echo -e Retro Native Forth, Release 6
echo -e Advanced Build System
echo -e -----------------------------
echo -e \* Setting up base system
tar xzf base.tar.gz
echo -e \* Setting up optional components
grep -h \;\#\1\  * | sed 's/;#1//' > rpatch
. rpatch
rm rpatch
echo -e \* Attempting to set up linux support
tar xzf linux.tar.gz
. rpatch
rm rpatch
echo -e \* Attempting to set up SVGALIB linux support
tar xzf vgalinux.tar.gz
. rpatch
rm rpatch
echo -e \* Cleaning up intermediate files...
mkdir safty
cp README safty/
cp INSTALL safty/
cp base.tar.gz safty/
cp abuild safty/
rm *
cp safty/* .
rm -rf safty
echo -e \* Now building Retro 6 Kernel
cd source
. build
cd ..
echo -e \* Completed!
