Subversion Repositories HelenOS

Rev

Rev 3386 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1301 jermar 1
#! /bin/bash
2
 
4718 mejdrech 3
wget -O pci.ids http://pciids.sourceforge.net/v2.2/pci.ids
1301 jermar 4
 
3028 decky 5
cat > pci_ids.h <<EOF
1301 jermar 6
/* DO NOT EDIT, THIS FILE IS AUTOMATICALLY GENERATED */
7
char *pci_ids[] = {
8
EOF
9
 
4718 mejdrech 10
cat pci.ids | grep -v '^#.*' | grep -v '^$' | tr \" \' | \
11
    sed -n 's/\(.*\)/"\1",/p' | sed 's/?/\\?/g' >> pci_ids.h
1301 jermar 12
 
3028 decky 13
cat >> pci_ids.h <<EOF
1301 jermar 14
""
15
};
16
EOF