#!/bin/sh 
# @(#)INTROS version 3.10 created 5/8/95
# @(#)Copyright (c), 1987, 1995 StatSci, Inc.  All rights reserved.
# Print out the Introductory statements for configuring the follwing:
# S-Plus Destination, Help files, Libraries, Printing defaults,

# Read in the shipped default values.
. $SHOME/splus/lib/install/SPLUS.env
platform=`$SHOME/cmd/PLATFORM`
if [ $platform != "OSF1_DECALPHA" ]; then
    . $SHOME/splus/lib/install/SPLUSLIC.env
fi

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

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

Help File Printing:
    Helps you view or modify the method S-PLUS uses to create hard copy of
    the S-PLUS help files.

Destinations for Installation Files:
    Helps you determine where S-PLUS installs some important files.

Libraries For Static Loading and Dynamic Loading with dyn.load2:
    Helps you view or modify what libraries S-PLUS should use when
    performing static loading or dynamic loading with dyn.load2
    (two ways to add your own compiled C or FORTRAN routines to S-PLUS).

License management:
    Helps you view or modify defaults used by various 'Splus LICENSE'
    commands.

Install less:
    Sets option for INSTALL program to install less, a file pager similar
    to "more" but allows you move backwards as well as forwards in a file.

Install less UNIX man page:
    Sets option for INSTALL program to install less UNIX manual page.

Install S-Plus UNIX man page:
    Sets option for INSTALL program to install S-Plus UNIX manual page.

About This Menu: Shows you this menu.

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 S-PLUS.  You should pick
	a directory which is in your PATH environment variable, so that 
	everyone can access S-PLUS without typing the shell scripts 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

Name of TROFF:
	Sets the name of your version of TROFF.  Possible names include:
	troff, psroff, ptroff, and eroff.  If set to "nroff", the help
	function prints what you see in your S-PLUS help window
Type of TROFF:
	Sets whether your version of TROFF is "old" TROFF, which is limited
	to only 4 fonts, or the "new" TROFF, which can use many more fonts.
Arguments for printing to stdout:
	Sets the argument for your version of TROFF to write to standard 
        output (generally "-t").
Name of EQN:
	Sets the name of the command which prepares equations for TROFF.	
	This command is generally "eqn".
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)
cat << EOF
	   Libraries For Static Loading and Dynamic Loading with dyn.load2:
System Libraries for Static Loading:
	Lets you set the system library specification for S-PLUS to use
	when doing static loading. These features allow you to incorporate
	your own external C or Fortran routines into S-PLUS.  S-PLUS will
	use the string you specify in its instructions to ld(1) or cc(1),
	so you must be careful to choose a specification that ld(1) will
	accept (usually involving -l<library> and/or -L<dir> switches),
	and the libraries mentioned in your specification must correspond
	to the libraries needed to link S-PLUS.  If the system library
	specification is wrong, S-PLUS will not be able to do static
	loading. Note: you should not include the C library specification
	in this list, since S-PLUS uses cc(1) when doing static loading.
	Please see the section "Libraries For Static Loading and Dynamic
	Loading with dyn.load2" in Chapter 1 of the S-PLUS User's Manual
	for more details.
System Libraries for Dynamic Loading with dyn.load2:
	Lets you set the system library specification for S-PLUS to use
	when doing dynamic loading with dyn.load2. This string will resemble 
	the one used for static loading (see above), though in some rare cases 
	you will need to use a parallel, alternate set of libraries. In any 
	event, the specification for dynamic loading with dyn.load2 should 
	include the C library (typically "-lc"), whereas that for static 
	loading should not.
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
;;

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 S-PLUS uses to send PostScript output to the printer.
Set HP LaserJet Print Command:
	Sets the command S-PLUS uses to send HP LaserJet output to the printer.
Set HP LaserJet Resolution:
	Sets the resolution, in dots per inch, of S-PLUS 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)
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"
Set Server Logfile Max Size:
        The license server logfile will automatically be trimmed to this size
        (approximately) by the license server daemon. It is a number with an
        optional "k" (kilobytes) or "m" (megabytes) following it.
        Default: "$LIC_LOGSIZE"
Set Server "resources" File:
        Sets the name of the file containing the resource descriptions used to
        configure the license server daemon(s). Refer to optionally installed
        elm_resource(5) man page for syntax. 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_RESOURCES"
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"
Installation of command(section 1) man pages:
        Sets option for INSTALL program to install UNIX manual pages for the
        Elan License Manager commands used by the "Splus LICENSE" commands.
        Entering no value will disable man page installation.
Installation of file format(section 5) man pages:
        Sets option for INSTALL program to install UNIX manual pages
        documenting the file formats used by Elan License Manager programs,
        such as the license server's elm_resource(5) manual page. Entering no
        value will disable man page installation.
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
;;
esac
