#! /bin/csh -f

set CD_PATH=$DMTOOLSDIR/demos/ICS
cd $CD_PATH

         echo Please select from the following:; \
         echo ; \
ASK:
         echo "1. Install Builder Xcessory"
         echo "2. Remove Builder Xcessory" 
	 echo "(enter 1 or 2)  \c"
		set ans=($<)
                if ( $ans == '1' ) then
			echo "You have selected to install Builder Xcessory."
			echo "Continue (y/n)?  \c"
			set ans=($<)
                		if ( $ans != 'y' ) then
				  echo "Would you like to exit (y/n)?  \c"
					set ans=($<)
					if ( $ans != 'y' ) then
					  goto ASK
					else
					  echo "Exiting..."
				 	  echo "Press Enter to exit this window...  \c"
					  set a = $<
					endif	
					exit
				
	
				else
	 			  echo "Installing..."
         			  su root -c './loadbx351'
				endif	
		else 
			echo "You have selected to Remove Builder Xcessory."
                        echo "Continue (y/n)?  \c"
                        set ans=($<)
                                if ( $ans != 'y' ) then
                                  echo "Would you like to exit (y/n)?  \c"
					set ans=($<)
                                        if ( $ans != 'y' ) then
                                          goto ASK
                                        else
                                          echo "Exiting..."
                                          echo "Press Enter to exit this window...  \c" 
                                          set a = $<
                                        endif   
                                        exit
                                

                                else
                                  echo "Removing..."

				  su root -c './RemoveIt2'"
				endif
		endif
