#! /bin/sh 
#set -x
#
# @(#)postinstall
# Copyright 1994 Sun Microsystems, Inc.  All Rights Reserved.
#
# Postinstall script for SUNWjxoft package, 101895-01 patch
#

PATH=/usr/sbin:/usr/bin:/etc:/usr/etc:/sbin
export PATH

################################
# NeWSprint specific variables #
################################

FONTDST_DIR="/usr/openwin/lib/locale/ja/fonts"
F3FONTSRC_DIR="/usr/openwin/lib/locale/ja/X11/fonts/F3"
PSFONTSRC_DIR="/usr/openwin/lib/locale/ja/X11/compfonts"
SLINK_F3FONT_LIST="Ryumin-Light.f3b GothicBBB-Medium.f3b"
SLINK_PSFONT_LIST="GothicBBB-Medium-78-EUC-H.ps \
		   GothicBBB-Medium-78-EUC-V.ps \
		   GothicBBB-Medium-78-H.ps \
		   GothicBBB-Medium-78-RKSJ-H.ps \
		   GothicBBB-Medium-78-RKSJ-V.ps \
		   GothicBBB-Medium-78-SJ-H.ps \
		   GothicBBB-Medium-78-SJ-V.ps \
		   GothicBBB-Medium-78-SuppA-H.ps \
		   GothicBBB-Medium-78-SuppA-V.ps \
		   GothicBBB-Medium-78-SuppB-HV.ps \
		   GothicBBB-Medium-78-V.ps \
		   GothicBBB-Medium-83pv-RKSJ-H.ps \
		   GothicBBB-Medium-83pv-SuppA-H.ps \
		   GothicBBB-Medium-83pv-SuppB-H.ps \
		   GothicBBB-Medium-EUC-H.ps \
		   GothicBBB-Medium-EUC-V.ps \
		   GothicBBB-Medium-Ext-EUC-H.ps \
		   GothicBBB-Medium-Ext-EUC-V.ps \
		   GothicBBB-Medium-Ext-H.ps \
		   GothicBBB-Medium-Ext-RKSJ-H.ps \
		   GothicBBB-Medium-Ext-RKSJ-V.ps \
		   GothicBBB-Medium-Ext-SJ-H.ps \
		   GothicBBB-Medium-Ext-SJ-V.ps \
		   GothicBBB-Medium-Ext-SuppA-H.ps \
		   GothicBBB-Medium-Ext-SuppA-V.ps \
		   GothicBBB-Medium-Ext-SuppB-HV.ps \
		   GothicBBB-Medium-Ext-V.ps \
		   GothicBBB-Medium-H.ps \
		   GothicBBB-Medium-NWP-H.ps \
		   GothicBBB-Medium-NWP-V.ps \
		   GothicBBB-Medium-RKSJ-H.ps \
		   GothicBBB-Medium-RKSJ-V.ps \
		   GothicBBB-Medium-SJ-H.ps \
		   GothicBBB-Medium-SJ-V.ps \
		   GothicBBB-Medium-SuppA-H.ps \
		   GothicBBB-Medium-SuppA-V.ps \
		   GothicBBB-Medium-SuppB-HV.ps \
		   GothicBBB-Medium-V.ps \
		   NotDefFont.ps \
		   PCHelvetica.ps \
		   PCTimes-Roman.ps \
		   Ryumin-Light-78-EUC-H.ps \
		   Ryumin-Light-78-EUC-V.ps \
		   Ryumin-Light-78-H.ps \
		   Ryumin-Light-78-RKSJ-H.ps \
		   Ryumin-Light-78-RKSJ-V.ps \
		   Ryumin-Light-78-SJ-H.ps \
		   Ryumin-Light-78-SJ-V.ps \
		   Ryumin-Light-78-SuppA-H.ps \
		   Ryumin-Light-78-SuppA-V.ps \
		   Ryumin-Light-78-SuppB-HV.ps \
		   Ryumin-Light-78-V.ps \
		   Ryumin-Light-83pv-RKSJ-H.ps \
		   Ryumin-Light-83pv-SuppA-H.ps \
		   Ryumin-Light-83pv-SuppB-H.ps \
		   Ryumin-Light-EUC-H.ps \
		   Ryumin-Light-EUC-V.ps \
		   Ryumin-Light-Ext-EUC-H.ps \
		   Ryumin-Light-Ext-EUC-V.ps \
		   Ryumin-Light-Ext-H.ps \
		   Ryumin-Light-Ext-RKSJ-H.ps \
		   Ryumin-Light-Ext-RKSJ-V.ps \
		   Ryumin-Light-Ext-SJ-H.ps \
		   Ryumin-Light-Ext-SJ-V.ps \
		   Ryumin-Light-Ext-SuppA-H.ps \
		   Ryumin-Light-Ext-SuppA-V.ps \
		   Ryumin-Light-Ext-SuppB-HV.ps \
		   Ryumin-Light-Ext-V.ps \
		   Ryumin-Light-H.ps \
		   Ryumin-Light-NWP-H.ps \
		   Ryumin-Light-NWP-V.ps \
		   Ryumin-Light-RKSJ-H.ps \
		   Ryumin-Light-RKSJ-V.ps \
		   Ryumin-Light-SJ-H.ps \
		   Ryumin-Light-SJ-V.ps \
		   Ryumin-Light-SuppA-H.ps \
		   Ryumin-Light-SuppA-V.ps \
		   Ryumin-Light-SuppB-HV.ps \
		   Ryumin-Light-V.ps \
		   UserGaiji.ps"

#
#	For localization (Japan).
#
for i in $SLINK_F3FONT_LIST
do
    if [ ! -f $FONTDST_DIR/$i ]; then
	ln -s $F3FONTSRC_DIR/$i $FONTDST_DIR
    fi
done

for i in $SLINK_PSFONT_LIST
do
    if [ ! -f $FONTDST_DIR/$i ]; then
	ln -s $PSFONTSRC_DIR/$i $FONTDST_DIR
    fi
done
