#!/bin/sh
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "@(#)install-sfw 1.6 07/10/27 SMI"
#
# Install gnu ghostscript's standard fonts in the proto area.
#
PROD=gnu-gs-fonts-std
VERS=6.0
PRODDIR=${PROD}-${VERS}
PROTOPREFIX=${ROOT}/usr
PROTOSHAREDIR=${PROTOPREFIX}/share
PROTOGSSHAREDIR=${PROTOSHAREDIR}/ghostscript
PROTOGSFONTSHAREDIR=${PROTOGSSHAREDIR}/fonts
GSSTDFONTS="a010013l.afm a010013l.pfb a010013l.pfm a010015l.afm a010015l.pfb
a010015l.pfm a010033l.afm a010033l.pfb a010033l.pfm a010035l.afm
a010035l.pfb a010035l.pfm b018012l.afm b018012l.pfb b018012l.pfm
b018015l.afm b018015l.pfb b018015l.pfm b018032l.afm b018032l.pfb
b018032l.pfm b018035l.afm b018035l.pfb b018035l.pfm c059013l.afm
c059013l.pfb c059013l.pfm c059016l.afm c059016l.pfb c059016l.pfm
c059033l.afm c059033l.pfb c059033l.pfm c059036l.afm c059036l.pfb
c059036l.pfm d050000l.afm d050000l.pfb d050000l.pfm fonts.dir
fonts.scale n019003l.afm n019003l.pfb n019003l.pfm n019004l.afm
n019004l.pfb n019004l.pfm n019023l.afm n019023l.pfb n019023l.pfm
n019024l.afm n019024l.pfb n019024l.pfm n019043l.afm n019043l.pfb
n019043l.pfm n019044l.afm n019044l.pfb n019044l.pfm n019063l.afm
n019063l.pfb n019063l.pfm n019064l.afm n019064l.pfb n019064l.pfm
n021003l.afm n021003l.pfb n021003l.pfm n021004l.afm n021004l.pfb
n021004l.pfm n021023l.afm n021023l.pfb n021023l.pfm n021024l.afm
n021024l.pfb n021024l.pfm n022003l.afm n022003l.pfb n022003l.pfm
n022004l.afm n022004l.pfb n022004l.pfm n022023l.afm n022023l.pfb
n022023l.pfm n022024l.afm n022024l.pfb n022024l.pfm p052003l.afm
p052003l.pfb p052003l.pfm p052004l.afm p052004l.pfb p052004l.pfm
p052023l.afm p052023l.pfb p052023l.pfm p052024l.afm p052024l.pfb
p052024l.pfm s050000l.afm s050000l.pfb s050000l.pfm z003034l.afm
z003034l.pfb z003034l.pfm"
. ${SRC}/tools/install.subr
cd ${PRODDIR}/fonts
for i in ${PROTOGSSHAREDIR} ${PROTOGSFONTSHAREDIR}
do
mkdir -p $i
chmod 755 $i
done
for i in ${GSSTDFONTS}
do
_install N ${i} ${PROTOGSFONTSHAREDIR}/${i} 644
done
exit 0