#!/bin/sh
# @(#)MAKE_X11 version 3.6 created 10/31/92
# @(#)Copyright (c), 1987, 1992 StatSci, Inc.  All rights reserved.
# 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
