/branches/dynload/uspace/srv/pci/update-ids |
---|
1,6 → 1,6 |
#! /bin/bash |
wget http://pciids.sourceforge.net/v2.2/pci.ids |
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 */ |
7,7 → 7,8 |
char *pci_ids[] = { |
EOF |
cat pci.ids | grep -v '^#.*' | grep -v '^$' | tr \" \' | sed -n 's/\(.*\)/"\1",/p' >> pci_ids.h |
cat pci.ids | grep -v '^#.*' | grep -v '^$' | tr \" \' | \ |
sed -n 's/\(.*\)/"\1",/p' | sed 's/?/\\?/g' >> pci_ids.h |
cat >> pci_ids.h <<EOF |
"" |