#!/bin/sh
# @(#) $RCSfile: MENU_DEST,v $ version $Revision: #16 $ created $Date: 2006/06/26 $
# @(#) Copyright (c), 1987, 2006 Insightful Corp.  All rights reserved.
# Helps you set new values for the destination file directories

CONTINUE=T

while [ "$CONTINUE" = "T" ]
do
    # Source file with S-Plus Default Environment variables
    . $SHOME/splus/lib/install/USER.env

    cat << EOF

Destination and Name for Splus Script:

1:    Location for Splus shell script        "$SPLUS_DEST"
2:    Name of Splus shell script             "$SPLUS_SCRIPT"
3:    About This Menu
0:    Return to Previous Menu 

EOF
echo-n "Enter the number of your choice: "
    read WHICH
    case $WHICH in
    0)    CONTINUE=F;;
    1)    SET_VARS SPLUS_DEST ;;
    2)    SET_VARS SPLUS_SCRIPT ;;
    3)    INTROS DEST ;;
    *)    echo "You must enter a number between 0 and 3" ;;
    esac
done

if [ -f $SPLUS_DEST/$SPLUS_SCRIPT ]
then
    MENU_OVERWRITE
fi

exit 0
