Rev 3107 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3107 | Rev 4691 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #! /bin/bash |
1 | #! /bin/bash |
2 | 2 | ||
3 | wget http://pciids.sourceforge.net/v2.2/pci.ids |
3 | wget -O pci.ids http://pciids.sourceforge.net/v2.2/pci.ids |
4 | 4 | ||
5 | cat > pci_ids.h <<EOF |
5 | cat > pci_ids.h <<EOF |
6 | /* DO NOT EDIT, THIS FILE IS AUTOMATICALLY GENERATED */ |
6 | /* DO NOT EDIT, THIS FILE IS AUTOMATICALLY GENERATED */ |
7 | char *pci_ids[] = { |
7 | char *pci_ids[] = { |
8 | EOF |
8 | EOF |
9 | 9 | ||
10 | cat pci.ids | grep -v '^#.*' | grep -v '^$' | tr \" \' | sed -n 's/\(.*\)/"\1",/p' >> pci_ids.h |
10 | cat pci.ids | grep -v '^#.*' | grep -v '^$' | tr \" \' | \ |
- | 11 | sed -n 's/\(.*\)/"\1",/p' | sed 's/?/\\?/g' >> pci_ids.h |
|
11 | 12 | ||
12 | cat >> pci_ids.h <<EOF |
13 | cat >> pci_ids.h <<EOF |
13 | "" |
14 | "" |
14 | }; |
15 | }; |
15 | EOF |
16 | EOF |