~martin-decky/helenos/rcu

« back to all changes in this revision

Viewing changes to uspace/srv/pci/update-ids

  • Committer: Martin Decky
  • Date: 2009-08-04 11:19:19 UTC
  • Revision ID: martin@uranus.dsrg.hide.ms.mff.cuni.cz-20090804111919-evyclddlr3v5lhmp
Initial import

Show diffs side-by-side

added added

removed removed

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