Subversion Repositories HelenOS

Rev

Rev 3107 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

#! /bin/bash

wget -O pci.ids http://pciids.sourceforge.net/v2.2/pci.ids

cat > pci_ids.h <<EOF
/* DO NOT EDIT, THIS FILE IS AUTOMATICALLY GENERATED */
char *pci_ids[] = {
EOF

cat pci.ids | grep -v '^#.*' | grep -v '^$' | tr \" \' | \
    sed -n 's/\(.*\)/"\1",/p' | sed 's/?/\\?/g' >> pci_ids.h

cat >> pci_ids.h <<EOF
""
};
EOF