summaryrefslogtreecommitdiff
path: root/graphics/psfig/pscompress
blob: c0f1346818bd55368757e66ccf588cfd0fc6da85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/csh -f
while ($1 != "") 
	if (-e $1.bb || -e $1.Z) then
		echo will not overwrite $1.bb or $1.Z, skipping
		shift
	else 
		echo "%\!" > $1.bb
		grep \%\%BoundingBox $1 >> $1.bb
		compress $1
		shift
	endif
end