> IIRC gs adjust the bbox when you convert eps -> eps. Try
> gs -dBATCH -sDEVICE=epswrite -sOutputFile=new.eps old.eps
What about this?
#!/bin/sh
# eps2eps -- in order to correct bounding box
# $Id: eps2eps,v 1.3 2000/10/29 23:38:18 matej Exp $
# $Log: eps2eps,v $
# Revision 1.3 2000/10/29 23:38:18 matej
# TMP setting in true side of if.
#
# Revision 1.2 2000/10/29 23:35:34 matej
# Correction of if command -- shit!
#
# Revision 1.1 2000/10/29 23:28:59 matej
# Initial revision
#
if [ -z $2 ]
then
TMP=` mktemp /tmp/eps2eps.XXXXXX `
cp $1 $TMP
INPUT=$TMP
OUTPUT=$1
else
INPUT=$1
OUTPUT=$2
fi
gs -dBATCH -dNOPAUSE -sDEVICE=epswrite -sOutputFile=$OUTPUT $INPUT
trap "rm $TMP* 2>/dev/null" 0