#!/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 other fonts in the proto area.
#
PROD=gnu-gs-fonts-other
VERS=6.0
PRODDIR=${PROD}-${VERS}
PROTOPREFIX=${ROOT}/usr
PROTOSHAREDIR=${PROTOPREFIX}/share
PROTOGSSHAREDIR=${PROTOSHAREDIR}/ghostscript
PROTOGSFONTSHAREDIR=${PROTOGSSHAREDIR}/fonts
GSOTHERFONTS="bchb.afm bchb.pfa bchbi.afm bchbi.pfa bchr.afm bchr.pfa bchri.afm
bchri.pfa fcyr.afm fcyr.gsf fcyri.afm fcyri.gsf fhirw.gsf fhirw.pfm
fkarw.gsf fkarw.pfm hrger.pfa hrgerb.gsf hrgerd.gsf hrgero.gsf hrgkc.gsf
hrgks.gsf hrgrr.pfa hrgrrb.gsf hrgrro.gsf hritr.pfa hritrb.gsf
hritro.gsf hrpld.pfa hrpldb.gsf hrpldbi.gsf hrpldi.pfa hrplr.gsf
hrplrb.gsf hrplrbo.gsf hrplro.gsf hrpls.gsf hrplsb.gsf hrplsbo.gsf
hrplso.gsf hrplt.pfa hrpltb.gsf hrpltbi.gsf hrplti.pfa hrscc.pfa
hrsccb.gsf hrscco.gsf hrscs.pfa hrscsb.gsf hrscso.gsf hrsyr.gsf
putb.pfa putbi.pfa putr.pfa putri.pfa u003043t.afm u003043t.gsf
u003043t.pfm u004006t.afm u004006t.gsf u004006t.pfm"
. ${SRC}/tools/install.subr
cd ${PRODDIR}/fonts
for i in ${PROTOGSSHAREDIR} ${PROTOGSFONTSHAREDIR}
do
mkdir -p $i
chmod 755 $i
done
for i in ${GSOTHERFONTS}
do
_install N ${i} ${PROTOGSFONTSHAREDIR}/${i} 644
done
exit 0