Files
PolyORB/Doc/adjustbb
Laurent Pautet 06afee1572 * glade_ug.texi: More on tutorial and DSA/CORBA comparison.
* full-ex.fig, xe-arch.fig, corba-arch.fig : Figures
	for full example, DSA architecture and CORBA architecture.

	* full-ex.fig.txt, xe-arch.fig.txt, corba-arch.fig.txt :
	ASCII versions of the previous figures.

 	* adjustbb, corba.ssh, Makefile : Script to adjust wrong
	bounding box, a format for a2ps and Makefile.

   	* naming.idl, all-srcs.ada : IDL example and all Ada sources in a
	chopable format.

Subversion-branch: /importfromcvs/trunk
Subversion-revision: 47113
1999-01-01 19:00:36 +00:00

19 lines
295 B
Bash
Executable File

#! /bin/sh
#
# Correct a buggy bounding box computation in ps2epsi
f=$1
set `psbb $f`
llx=$1
lly=$2
urx=$3
ury=$4
# Corrections
if [ "x$USER" != "xsam" ]; then
ury=`expr $ury + 20`
fi
llx=20
urx=320
sed -e "s/^%%BoundingBox.*/%%BoundingBox: $llx $lly $urx $ury/" < $f > $f.tmp
mv $f.tmp $f