1*7c478bd9Sstevel@tonic-gate#ident "%Z%%M% %I% %E% SMI" 2*7c478bd9Sstevel@tonic-gate 3*7c478bd9Sstevel@tonic-gate# 4*7c478bd9Sstevel@tonic-gate# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 5*7c478bd9Sstevel@tonic-gate# Use is subject to license terms. 6*7c478bd9Sstevel@tonic-gate# 7*7c478bd9Sstevel@tonic-gate# CDDL HEADER START 8*7c478bd9Sstevel@tonic-gate# 9*7c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 10*7c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 11*7c478bd9Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 12*7c478bd9Sstevel@tonic-gate# with the License. 13*7c478bd9Sstevel@tonic-gate# 14*7c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 15*7c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 16*7c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 17*7c478bd9Sstevel@tonic-gate# and limitations under the License. 18*7c478bd9Sstevel@tonic-gate# 19*7c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 20*7c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 21*7c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 22*7c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 23*7c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 24*7c478bd9Sstevel@tonic-gate# 25*7c478bd9Sstevel@tonic-gate# CDDL HEADER END 26*7c478bd9Sstevel@tonic-gate# 27*7c478bd9Sstevel@tonic-gate 28*7c478bd9Sstevel@tonic-gate# 29*7c478bd9Sstevel@tonic-gate# University Copyright- Copyright (c) 1982, 1986, 1988 30*7c478bd9Sstevel@tonic-gate# The Regents of the University of California 31*7c478bd9Sstevel@tonic-gate# All Rights Reserved 32*7c478bd9Sstevel@tonic-gate# 33*7c478bd9Sstevel@tonic-gate# University Acknowledgment- Portions of this document are derived from 34*7c478bd9Sstevel@tonic-gate# software developed by the University of California, Berkeley, and its 35*7c478bd9Sstevel@tonic-gate# contributors. 36*7c478bd9Sstevel@tonic-gate# 37*7c478bd9Sstevel@tonic-gate 38*7c478bd9Sstevel@tonic-gate 39*7c478bd9Sstevel@tonic-gate# For use in one of the dev* font-table directories 40*7c478bd9Sstevel@tonic-gate# 41*7c478bd9Sstevel@tonic-gate# If you're not really comfortable with the 'makedev' program, you can 42*7c478bd9Sstevel@tonic-gate# use this shell script to make the binary font and device tables for the 43*7c478bd9Sstevel@tonic-gate# device independent troff. You can be sure that all the necessary 44*7c478bd9Sstevel@tonic-gate# binary files will be properly updated. The command 'maketables *' 45*7c478bd9Sstevel@tonic-gate# will make a complete new set of binary '.out' files. 46*7c478bd9Sstevel@tonic-gate# 47*7c478bd9Sstevel@tonic-gate# If the makedev program isn't located in the parent of this directory, 48*7c478bd9Sstevel@tonic-gate# just change the initialization of the shell variable MAKEDEV. 49*7c478bd9Sstevel@tonic-gate# 50*7c478bd9Sstevel@tonic-gate# 51*7c478bd9Sstevel@tonic-gate# USAGE: maketables files 52*7c478bd9Sstevel@tonic-gate# files - one or more files from this directory. 53*7c478bd9Sstevel@tonic-gate# 54*7c478bd9Sstevel@tonic-gate# 55*7c478bd9Sstevel@tonic-gate 56*7c478bd9Sstevel@tonic-gate 57*7c478bd9Sstevel@tonic-gateMAKEDEV=../makedev # this program does the real work 58*7c478bd9Sstevel@tonic-gateMAKEDESC=no # need to remake the DESC.out file 59*7c478bd9Sstevel@tonic-gate 60*7c478bd9Sstevel@tonic-gateFONTS=`grep "^fonts" DESC | sed s/"fonts[ \t][0-9][0-9]*"//gp` 61*7c478bd9Sstevel@tonic-gate 62*7c478bd9Sstevel@tonic-gateFONTS=`echo "$FONTS" | sed "s/ / /gp"` # get rid of any tabs 63*7c478bd9Sstevel@tonic-gateFONTS="$FONTS " # and add a blank to the end 64*7c478bd9Sstevel@tonic-gate 65*7c478bd9Sstevel@tonic-gatefor i do 66*7c478bd9Sstevel@tonic-gate if echo "$FONTS" | grep " $i " > /dev/null; then 67*7c478bd9Sstevel@tonic-gate MAKEDESC=yes 68*7c478bd9Sstevel@tonic-gate continue 69*7c478bd9Sstevel@tonic-gate fi 70*7c478bd9Sstevel@tonic-gate 71*7c478bd9Sstevel@tonic-gate case $i in 72*7c478bd9Sstevel@tonic-gate [A-Z]) $MAKEDEV $i;; 73*7c478bd9Sstevel@tonic-gate 74*7c478bd9Sstevel@tonic-gate [A-Z][0-9]) $MAKEDEV $i;; 75*7c478bd9Sstevel@tonic-gate 76*7c478bd9Sstevel@tonic-gate [A-Z][A-Z]) $MAKEDEV $i;; 77*7c478bd9Sstevel@tonic-gate 78*7c478bd9Sstevel@tonic-gate DESC) MAKEDESC=yes;; 79*7c478bd9Sstevel@tonic-gate esac 80*7c478bd9Sstevel@tonic-gatedone 81*7c478bd9Sstevel@tonic-gate 82*7c478bd9Sstevel@tonic-gateif [ $MAKEDESC = yes ]; then 83*7c478bd9Sstevel@tonic-gate $MAKEDEV DESC 84*7c478bd9Sstevel@tonic-gatefi 85*7c478bd9Sstevel@tonic-gate 86*7c478bd9Sstevel@tonic-gateif [ -r LINKFILE ]; then 87*7c478bd9Sstevel@tonic-gate . LINKFILE 88*7c478bd9Sstevel@tonic-gatefi 89