#! /bin/sh

# Script to stick bounding box finder in front of a postscript file
#    Adapted from Ned's original

# $Header: /afs/sipb.mit.edu/project/sipbsrc/src/dvips/contrib/bbfig/RCS/bbfig,v 1.2 1993/08/04 20:18:33 ckclark Exp $

# BBPSDIR=<wherever>  # Define this if bb.ps doesn't live in same
                      #   directory as bbfig

BBPSDIR=/mit/sipb/lib

if [ ! -f ${BBPSDIR=`dirname $0`}/bb.ps ]
then
    echo >&2 "Can't locate bb.ps"
    exit 1
fi

case $# in
    0)    cat $BBPSDIR/bb.ps -
	  ;;
    *)    cat $BBPSDIR/bb.ps "$@"
	  ;;
esac
