#!/bin/sh
# @(#)MENU_LIBS version 3.8 created 8/4/92
# @(#)Copyright (c), 1987, 1992 StatSci, Inc.  All rights reserved.
# Helps you set new values for any libraries used with S-PLUS.

CONTINUE=T

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

    cat << EOF

Libraries For Static Loading and Dynamic Loading with dyn.load2:

1:    Libraries for Static Loading (not including C libraries)
       "$S_LIB_STATIC"
2:    Libraries for dyn.load2 (including C libraries)
       "$S_LIB_DYNLOAD2"
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 S_LIB_STATIC ;;
    2)    SET_VARS S_LIB_DYNLOAD2 ;;
    3)    INTROS LIBS ;;
    *)    echo "You must enter a number between 0 and 3" ;;
    esac
done 
exit 0
