Subversion Repositories HelenOS

Rev

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

#! /bin/bash

wget 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' >> pci_ids.h

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