#!/bin/bash
#Id: setup (%) 2003 J. McDaniel 

set -e
clear

# Open Build Tree 
  
  echo -en "\nCreating Build Tree..."
  tar -zxpf ./buildtree.tar.gz
  rm -f buildtree.tar.gz

# Add root files
 
  echo -en "\nAdding /root files..."
  ( cd ./root && tar -zxpf ../root.tar.gz )
  rm -f root.tar.gz
 
# Open /usr Directory

  echo -en "\nAdding /usr directory..."
  ( cd ./usr && tar -zxpf usr.tar.gz )
  rm -f usr.tar.gz
 
if [ $? -eq 0 ];then

    echo -en "\n\nSuccess: Setup Complete!!!"
    echo -en "\n\nDon't forget to edit the ./isolinux/*.msg files"
    echo -en "\nwith your information.  Make whatever changes you"
    echo -en "\nwish and run pmake when ready.\n"    
fi    
    
    
