Home | History | Annotate | Download | only in gnu-gs-fonts-std
      1 #!/bin/sh
      2 #
      3 # CDDL HEADER START
      4 #
      5 # The contents of this file are subject to the terms of the
      6 # Common Development and Distribution License (the "License").
      7 # You may not use this file except in compliance with the License.
      8 #
      9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
     10 # or http://www.opensolaris.org/os/licensing.
     11 # See the License for the specific language governing permissions
     12 # and limitations under the License.
     13 #
     14 # When distributing Covered Code, include this CDDL HEADER in each
     15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     16 # If applicable, add the following below this CDDL HEADER, with the
     17 # fields enclosed by brackets "[]" replaced with your own identifying
     18 # information: Portions Copyright [yyyy] [name of copyright owner]
     19 #
     20 # CDDL HEADER END
     21 #
     22 #
     23 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
     24 # Use is subject to license terms.
     25 #
     26 #ident	"@(#)install-sfw	1.6	07/10/27 SMI"
     27 #
     28 # Install gnu ghostscript's standard fonts in the proto area.
     29 #
     30 
     31 PROD=gnu-gs-fonts-std
     32 VERS=6.0
     33 PRODDIR=${PROD}-${VERS}
     34 
     35 PROTOPREFIX=${ROOT}/usr
     36 PROTOSHAREDIR=${PROTOPREFIX}/share
     37 PROTOGSSHAREDIR=${PROTOSHAREDIR}/ghostscript
     38 PROTOGSFONTSHAREDIR=${PROTOGSSHAREDIR}/fonts
     39 
     40 GSSTDFONTS="a010013l.afm a010013l.pfb a010013l.pfm a010015l.afm a010015l.pfb
     41 	a010015l.pfm a010033l.afm a010033l.pfb a010033l.pfm a010035l.afm
     42 	a010035l.pfb a010035l.pfm b018012l.afm b018012l.pfb b018012l.pfm
     43 	b018015l.afm b018015l.pfb b018015l.pfm b018032l.afm b018032l.pfb
     44 	b018032l.pfm b018035l.afm b018035l.pfb b018035l.pfm c059013l.afm
     45 	c059013l.pfb c059013l.pfm c059016l.afm c059016l.pfb c059016l.pfm
     46 	c059033l.afm c059033l.pfb c059033l.pfm c059036l.afm c059036l.pfb
     47 	c059036l.pfm d050000l.afm d050000l.pfb d050000l.pfm fonts.dir
     48 	fonts.scale n019003l.afm n019003l.pfb n019003l.pfm n019004l.afm
     49 	n019004l.pfb n019004l.pfm n019023l.afm n019023l.pfb n019023l.pfm
     50 	n019024l.afm n019024l.pfb n019024l.pfm n019043l.afm n019043l.pfb
     51 	n019043l.pfm n019044l.afm n019044l.pfb n019044l.pfm n019063l.afm
     52 	n019063l.pfb n019063l.pfm n019064l.afm n019064l.pfb n019064l.pfm
     53 	n021003l.afm n021003l.pfb n021003l.pfm n021004l.afm n021004l.pfb
     54 	n021004l.pfm n021023l.afm n021023l.pfb n021023l.pfm n021024l.afm
     55 	n021024l.pfb n021024l.pfm n022003l.afm n022003l.pfb n022003l.pfm
     56 	n022004l.afm n022004l.pfb n022004l.pfm n022023l.afm n022023l.pfb
     57 	n022023l.pfm n022024l.afm n022024l.pfb n022024l.pfm p052003l.afm
     58 	p052003l.pfb p052003l.pfm p052004l.afm p052004l.pfb p052004l.pfm
     59 	p052023l.afm p052023l.pfb p052023l.pfm p052024l.afm p052024l.pfb
     60 	p052024l.pfm s050000l.afm s050000l.pfb s050000l.pfm z003034l.afm
     61 	z003034l.pfb z003034l.pfm"
     62 
     63 . ${SRC}/tools/install.subr
     64 
     65 cd ${PRODDIR}/fonts
     66 
     67 for i in ${PROTOGSSHAREDIR} ${PROTOGSFONTSHAREDIR}
     68 do
     69 	mkdir -p $i
     70 	chmod 755 $i
     71 done
     72 
     73 for i in ${GSSTDFONTS}
     74 do
     75 	_install N ${i} ${PROTOGSFONTSHAREDIR}/${i} 644
     76 done
     77 
     78 exit 0
     79