File: getbb

package info (click to toggle)
dvb 0.9.4.20020321-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,068 kB
  • ctags: 5,791
  • sloc: ansic: 32,844; cpp: 13,679; xml: 9,017; makefile: 567; sh: 330; asm: 92
file content (12 lines) | stat: -rwxr-xr-x 357 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
f=`grep BoundingBox $2 | cut -d' ' -f2,3,4,5`
g=`\
echo $2" llx=";(echo $f|cut -d' ' -f1 );\
echo " lly=";(echo $f|cut -d' ' -f2 );\
echo " urx=";(echo $f|cut -d' ' -f3 );\
echo " ury=";(echo $f|cut -d' ' -f4 );\
echo " rwi=";(echo $f|cut -d' ' -f3 );\
echo "0"
`
h=`echo $g| sed "s/= /=/g" | sed "s/ 0/0/g"`
cat $1 | sed "s/psfile=$2/psfile=$h/"