summaryrefslogtreecommitdiff
path: root/v4l/scripts/cardlist
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2005-05-15 19:07:31 +0000
committerMauro Carvalho Chehab <devnull@localhost>2005-05-15 19:07:31 +0000
commit97f18941269f35788344415a5c423b3414f2051f (patch)
tree42d427de2cefa262e3360379e2116fd24a670f95 /v4l/scripts/cardlist
parentf8c8d725417162e074618bc8a72d5ad6cb461154 (diff)
downloadmediapointer-dvb-s2-97f18941269f35788344415a5c423b3414f2051f.tar.gz
mediapointer-dvb-s2-97f18941269f35788344415a5c423b3414f2051f.tar.bz2
Mauro Chehab (mchehab at brturbo.com.br): scripts/cardlist updated to
automatically generate doc/CARDLIST.cx88. doc/CARDLIST.xxx updated.
Diffstat (limited to 'v4l/scripts/cardlist')
-rw-r--r--v4l/scripts/cardlist9
1 files changed, 8 insertions, 1 deletions
diff --git a/v4l/scripts/cardlist b/v4l/scripts/cardlist
index ebfe5aec3..634ffc4dc 100644
--- a/v4l/scripts/cardlist
+++ b/v4l/scripts/cardlist
@@ -5,7 +5,14 @@ cat bttv-cards.c \
| perl -ne '/"([^"]+)"/; printf("card=%d - %s\n",$i++,$1)' \
> doc/CARDLIST.bttv
-cat tuner.c \
+LINE="`grep -n "gdi_tuner\[\]" cx88-cards.c|cut -f1 -d:`"
+
+head -$LINE cx88-cards.c \
+ | grep "\.name.*=" \
+ | perl -ne '/"([^"]+)"/; printf("card=%d - %s\n",$i++,$1)' \
+ > doc/CARDLIST.cx88
+
+cat tuner-simple.c \
| grep "{ \"" \
| perl -ne '/"([^"]+)"/; printf("tuner=%d - %s\n",$i++,$1)' \
> doc/CARDLIST.tuner