
# Copyright 1990 (C) Adobe Systems Incorporated.  All rights reserved.
# GOVERNMENT END USERS: See notice of rights in Notice file in release directory.
# PostScript is a registered trademark of Adobe Systems Incorporated
# TranScript is a registered trademark of Adobe Systems Incorporated
# $Header: /disks/hobo/vp6/snichols/rel3.0/transcript/RCS/instldit.sh,v 3.0 1991/06/17 17:02:52 snichols Exp $

echo ----- INSTALL DITROFF -----

#
#  must run as root, because of the chowning and chgrping.
#
#

if [ -r ./config ]
then
    . ./config
else 
    echo "config file missing!"
    exit 1
fi

SRCDIR=`pwd`
BUILDDIR=`pwd`

if [ ! -d $DITDIR ]
then
     mkdir $DITDIR
fi
cd $DITDIR

rm -rf *

for i in $FONTFAMILIES
do
    mkdir $i
    mkdir $i/devpsc
    cp $BUILDDIR/$i/devpsc/* $i/devpsc
done

chmod 755 . * */devpsc
chmod 644 */devpsc/*

chown $OWNER . * */devpsc */devpsc/*
chgrp $GROUP . * */devpsc */devpsc/*

if [ $LINKS = "TRUE" ]
then
    rm -f /usr/lib/font/devpsc
    mv /usr/lib/font/devpsc /usr/lib/font/devpsc.old
    ln -s $DITDIR/$DITDEFAULT/devpsc /usr/lib/font/devpsc
else
    rm -rf /usr/lib/font/devpsc
    mkdir /usr/lib/font/devpsc
    ln $DIDIR/$DITDEFAULT/devpsc /usr/lib/font/devpsc
fi
