source: mainline/uspace/srv/pci/update-ids@ 386e276

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 386e276 was afb1e35, checked in by Martin Decky <martin@…>, 17 years ago

cleanup scripts

  • Property mode set to 100755
File size: 296 bytes
Line 
1#! /bin/bash
2
3wget http://pciids.sourceforge.net/v2.2/pci.ids
4
5cat > pci_ids.h <<EOF
6/* DO NOT EDIT, THIS FILE IS AUTOMATICALLY GENERATED */
7char *pci_ids[] = {
8EOF
9
10cat pci.ids | grep -v '^#.*' | grep -v '^$' | tr \" \' | sed -n 's/\(.*\)/"\1",/p' >> pci_ids.h
11
12cat >> pci_ids.h <<EOF
13""
14};
15EOF
Note: See TracBrowser for help on using the repository browser.