#! /bin/csh
echo ''
echo ''
echo '                      Visualize 1.1 Installer'
echo '                George Hilley, Stanford University'
echo ''
echo 'This program will modify some of the contents of the ARCHOME directory'
echo 'in order to incorporate the Visualize 1.1 AMLs into ARC/INFO in the '
echo 'form of an ARC/INFO module.'
echo ''
echo 'If you wish to proceed with the installation, please type <proceed> at'
echo -n 'the prompt, otherwise the execution of this script will be halted:'
if (`head -1` == 'proceed') then
   if ( `ls $ARCHOME|grep 'visualize'` == 'visualize' ) then
       echo 'Removing Old Visualize Files from ARCHOME directory...'
       rm -r $ARCHOME/visualize
       rm  $ARCHOME/atool/arc/visualize.aml
   endif
   mkdir $ARCHOME/visualize
   cp -r * $ARCHOME/visualize
   rm $ARCHOME/visualize/visualize.aml
   cp visualize.aml $ARCHOME/atool/arc/visualize.aml
   echo ''
   echo ''
   echo 'Installation complete.  You may now use Visualize 1.1 by typing'
   echo '<visualize> at the Arc: prompt.'
else
   echo ''
   echo ''
   echo 'Installation aborted.'
   echo ''
   echo ''
endif

