#!/bin/sh
# %Z%$RCSfile$ version $Revision: #8 $ created $Date: 2008/01/15 $
# %Z%%Q%
# Create the S-PLUS Printing files from the *.pre files in $INSTALL_DIR
# This routine is called from the CONFIGURE shell script, which sets a number 
# of default environment variables

# NOTE: We don't need to do any customizations for X11 any more.

# Sunview Stuff

# Make Splus.d for systems with /usr/lib/defaults, kludge back from
# state=0 to PostScript.  Use -r not -d because directory might be a link.
if [ -r /usr/lib/defaults/Defaults.d ] && [ -r "$SUN_SOURCE"/Splus.d.pre ]
then
    case $METHOD in 
        0)    METHOD="postscript";;
        *)    METHOD="laserjet";;
    esac
    case $ORIENT in
        1)    ORIENT="landscape";;
        *)    ORIENT="portrait";;
    esac
    export METHOD ORIENT
    SED_FILE "$SUN_SOURCE"/Splus.d.pre "$SUN_SOURCE"/Splus.d || exit 1
fi
exit 0
