blob: 8e13b75a145cc3a4a94020a6951289a2efebada1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh
cat bttv-cards.c \
| grep "\.name.*=" \
| perl -ne '/"([^"]+)"/; printf("card=%d - %s\n",$i++,$1)' \
| perl -ne 's/[ \t]+$//; print' > doc/CARDLIST.bttv
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)' \
| perl -ne 's/[ \t]+$//; print' > doc/CARDLIST.cx88
TEA="`grep TEA5767_TUNER_NAME tuner.h|cut -d " " -f 3-`"
cat tuner-simple.c \
| sed s/TEA5767_TUNER_NAME/"$TEA"/ \
| grep "{ \"" \
| perl -ne '/"([^"]+)"/; printf("tuner=%d - %s\n",$i++,$1)' \
| perl -ne 's/[ \t]+$//; print' > doc/CARDLIST.tuner
scripts/saa7134.pl saa7134.h saa7134-cards.c \
| perl -ne 's/[ \t]+$//; print' > doc/CARDLIST.saa7134
|