source:
mainline/uspace/srv/pci/update-ids@
0902edfe
Last change on this file since 0902edfe was fa5526d, checked in by , 16 years ago | |
---|---|
|
|
File size: 331 bytes |
Rev | Line | |
---|---|---|
[4a7c273] | 1 | #! /bin/bash |
2 | ||
[fa5526d] | 3 | wget -O pci.ids http://pciids.sourceforge.net/v2.2/pci.ids |
[4a7c273] | 4 | |
[afb1e35] | 5 | cat > pci_ids.h <<EOF |
[4a7c273] | 6 | /* DO NOT EDIT, THIS FILE IS AUTOMATICALLY GENERATED */ |
7 | char *pci_ids[] = { | |
8 | EOF | |
9 | ||
[fa5526d] | 10 | cat pci.ids | grep -v '^#.*' | grep -v '^$' | tr \" \' | \ |
11 | sed -n 's/\(.*\)/"\1",/p' | sed 's/?/\\?/g' >> pci_ids.h | |
[4a7c273] | 12 | |
[afb1e35] | 13 | cat >> pci_ids.h <<EOF |
[4a7c273] | 14 | "" |
15 | }; | |
16 | EOF |
Note:
See TracBrowser
for help on using the repository browser.