#!/bin/sh 
# @(#) $RCSfile$: $Revision: #20 $, $Date: 2008/10/07 $ 
# @(#) Copyright (c), 1987, 2006 Insightful Corp.  All rights reserved.

# Print out the Introductory statements for configuring the follwing:
# Splus Destination, Help files, Libraries, Printing defaults,

# Read in the shipped default values.
. $SHOME/splus/lib/install/SPLUS.env
platform=`$SHOME/cmd/PLATFORM`

if [ "$S_USE_LICENSE_MANAGER" = "yes" ] ; then
    if [ $platform != "OSF1_DECALPHA" ]; then
        . $SHOME/splus/lib/install/SPLUSLIC.env
    fi
fi

case $1 in
CONFIG)
cat << EOF
                  Configure Options 

About This Menu: Shows you this menu.

Graphics Hard Copy Printing:
    Helps you view or modify the defaults for printing hard copy plots
    with Spotfire S+.

Help File Printing
    Lets you specify your local print command, so that help files can
    be printed.

Destinations for Installation Files:
    Helps you determine where Spotfire S+ installs some important files.

EOF
if [ "$S_USE_LICENSE_MANAGER" = "yes" ] ; then
cat << EOF
License Management:
    Helps you configure locations of license manager files, logs, man pages ...

EOF
fi

cat << EOF
Installation of Splus man page:
    Sets option for INSTALL program to install Splus manual page.
 
Exit this Menu:  Exits menu.

EOF
echo-n "Press <return> to continue: "
read ANSWER
;;

DEST)
cat << EOF




		Default Destinations for Installation Files:



Splus shell script :
	Lets you set the destination directory for the Splus shell script
	which people on your system use to start Spotfire S+.  You should
	pick a directory which is in your PATH environment variable, so that 
	everyone can start Spotfire S+ without typing the shell script's full
	path name.

About This Menu :

	Shows you this menu.

Return to Previous Menu :
	Returns you to previous menu.

EOF
echo-n "Press <return> to continue: "
read ANSWER
;;

HELP)
cat << EOF

                    Help Defaults Menu


Print Command:
	Sets the name of the command to send a file to the printer.

About This Menu:
	Show this menu.

Return to Previous Menu:
	Return to the previous menu.

EOF
echo-n "Press <return> to continue: "
read ANSWER
;;

LIBS)
;;

PRINT)
cat << EOF

                       View/Modify Print Defaults Menu

Set Print Orientation:
	Sets the orientation of hard copy plots on the page, "landscape" puts
	the x-axis on the long side of the paper; "portrait" puts the x-axis
	along the short side.
Set Print Method:
	Sets what kind of output the printing methods produce by default. 
Set PostScript Print Command:
	Sets the command Spotfire S+ uses to send PostScript output to the printer.
Set HP LaserJet Print Command:
	Sets the command Spotfire S+ uses to send HP LaserJet output to the printer.
Set HP LaserJet Resolution:
	Sets the resolution, in dots per inch, of Spotfire S+ HP LaserJet output.
About This Menu:
	Shows you this menu.
Return to Previous Menu:
	Returns you to the "View/Modify Defaults Menu".

EOF
echo-n "Press <return> to continue: "
read ANSWER
;;
LIC)
if [ "$S_USE_LICENSE_MANAGER" = "yes" ] ; then
LIC_RSHCMD=`cat $SHOME/splus/lib/install/SPLUSRSH`
cat << EOF

                 View/Modify License Manager Defaults Menu

Set Server Logfile Name:
        Sets the name of the file to be used by the license server daemon to
        log messages to. It can either be the full directory path to a file
        (start with a "/") or it will be interpreted as being relative to the
        current \`Splus SHOME\` directory. Default: "$LIC_LOGFILE"
Remote server auto-start cmd:
        This is the command that will be used to start the license server
        daemon on a remote system. The command should include the string "%s"
        which will be replaced by the name of the license server host.
        Default: $LIC_RSHCMD
About This Menu: Shows you this menu.
Return to Previous Menu:
        Returns you to the "View/Modify Defaults Menu".

EOF
echo-n "Press <return> to continue: "
read ANSWER
fi
;;
esac
