head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	95.11.05.20.55.34;	author ghudson;	state Exp;
branches;
next	1.1;

1.1
date	95.11.05.20.42.50;	author ghudson;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Make Courier/font.head read-write before adding to it, since it tends
to be read-only in the source tree.
@
text
@
#! /bin/sh
# lib/troff.font/makefontdir
#
# Copyright (c) 1987 Adobe Systems Incorporated. All Rights Reserved.
# GOVERNMENT END USERS: See notice of rights in Notice file in release directory.
# RCSID: $Header: /afs/sipb/project/sipb-athena/src/transcript-v2.1/lib/troff.font/RCS/makefontdir,v 1.1 1995/11/05 20:42:50 ghudson Exp ghudson $

# This script moves the font files for a font family into a target
# directory.  It also make some links.  It is used to create [o]troff
# font family directories.
# Font family directories are always created in the current directory.

# Args: family-name


family=$1
target=$1

# Set up the rest of the args:  R-font  I-font  B-font  S-font
set $1 `awk -f doto.awk $family.map`

# This creates the font files from the .c files.
# If you want to be able to check the ".c" files, remove the "rm" line.
for file in $2 $3 $4 $5
do
	cc -c $file.c
	mv $file.o $file
	strip $file
	rm $file.c
done

# Get the overhead files
mv $family.ct $target/font.ct
cp font.head $target
# Inhibit ligatures for Courier font -- looks better without them.
if test x"$family" = xCourier
then
    chmod u+w $target/font.head
    echo ".lg 0" >>$target/font.head
fi

# Get the font files
mv $2 $3 $4 $5 $target

# Make links for R/I/B fonts.
cd $target
ln $2 ftR
ln $3 ftI
ln $4 ftB
if test x"$5" != xftS
then
    ln $5 ftS
fi

# Make sure everything has owner and group set correctly.
chown $OWNER . *
chgrp $GROUP . *
chmod 755 .
chmod 644 *
@


1.1
log
@Initial revision
@
text
@d7 1
a7 1
# RCSID: $Header: /afs/dev.mit.edu/source/src80/third/unsupported/transcript-v2.1/lib/troff.font/RCS/makefontdir,v 1.1 1994/09/18 05:38:56 cfields Exp $
d39 1
@
