Rev 2927 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1301 | jermar | 1 | #! /bin/bash |
2 | |||
3 | wget http://pciids.sourceforge.net/v2.2/pci.ids |
||
4 | |||
3107 | svoboda | 5 | cat > pci_ids.h <<EOF |
1301 | jermar | 6 | /* DO NOT EDIT, THIS FILE IS AUTOMATICALLY GENERATED */ |
7 | char *pci_ids[] = { |
||
8 | EOF |
||
9 | |||
3107 | svoboda | 10 | cat pci.ids | grep -v '^#.*' | grep -v '^$' | tr \" \' | sed -n 's/\(.*\)/"\1",/p' >> pci_ids.h |
1301 | jermar | 11 | |
3107 | svoboda | 12 | cat >> pci_ids.h <<EOF |
1301 | jermar | 13 | "" |
14 | }; |
||
15 | EOF |