summaryrefslogtreecommitdiff
path: root/dvb-spec/dvbapi/getbb
diff options
context:
space:
mode:
authorholger <devnull@localhost>2002-10-10 16:22:27 -0300
committerholger <devnull@localhost>2002-10-10 16:22:27 -0300
commit5a523e605b9b6d1ae50d0707c1874c5b7f0959cc (patch)
tree4dfe1bf1f9ae2f2eefb5d34a42cc4ba029817091 /dvb-spec/dvbapi/getbb
parentab85b007da42f42856a775d8cff97332093f5b34 (diff)
downloadmediapointer-dvb-s2-5a523e605b9b6d1ae50d0707c1874c5b7f0959cc.tar.gz
mediapointer-dvb-s2-5a523e605b9b6d1ae50d0707c1874c5b7f0959cc.tar.bz2
the new HEAD
Diffstat (limited to 'dvb-spec/dvbapi/getbb')
-rwxr-xr-xdvb-spec/dvbapi/getbb12
1 files changed, 12 insertions, 0 deletions
diff --git a/dvb-spec/dvbapi/getbb b/dvb-spec/dvbapi/getbb
new file mode 100755
index 000000000..004714d3a
--- /dev/null
+++ b/dvb-spec/dvbapi/getbb
@@ -0,0 +1,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/"