From 97f18941269f35788344415a5c423b3414f2051f Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Sun, 15 May 2005 19:07:31 +0000 Subject: Mauro Chehab (mchehab at brturbo.com.br): scripts/cardlist updated to automatically generate doc/CARDLIST.cx88. doc/CARDLIST.xxx updated. --- v4l/scripts/cardlist | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'v4l/scripts/cardlist') 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 -- cgit v1.2.3