- add combined download target for usb and pci ids
authorKarsten Hopp <karsten@redhat.com>
Tue, 8 Apr 2008 12:19:19 +0000 (14:19 +0200)
committerKarsten Hopp <karsten@redhat.com>
Tue, 8 Apr 2008 12:19:19 +0000 (14:19 +0200)
- add checks for commented out HCC and VT entries in usb.ids

Makefile

index 02e7709b631be9e986ae393572e853088bc658bd..4d231e58eaa2bc7bd9f6963414ade222e91a1f39 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -50,8 +50,10 @@ changelog:
        @(GIT_DIR=.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog || rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2)
 
 check:
-       [ -x /sbin/lspci ] && /sbin/lspci -i pci.ids > /dev/null
-       ./check-pci-ids.py
+       @[ -x /sbin/lspci ] && /sbin/lspci -i pci.ids > /dev/null || { echo "FAILURE: /sbin/lspci -i pci.ids"; exit 1; } && echo "OK: /sbin/lspci -i pci.ids"
+       @./check-pci-ids.py || { echo "FAILURE: ./check-pci-ids.py"; exit 1; } && echo "OK: ./check-pci-ids.py"
+       @grep -q "^VT " usb.ids && { echo "FAILURE: VT entries in usb.ids need to be commented out"; exit 1; } || echo "OK: VT entries commented out"
+       @grep -q "^HCC " usb.ids && { echo "FAILURE: HCC entries in usb.ids need to be commented out"; exit 1; } || echo "OK: HCC entries commented out"
 
 create-archive:
        @rm -rf $(NAME)-$(VERSION) $(NAME)-$(VERSION).tar*  2>/dev/null
@@ -80,6 +82,8 @@ clean:
 clog: hwdata.spec
        @sed -n '/^%changelog/,/^$$/{/^%/d;/^$$/d;s/%%/%/g;p}' $< | tee $@
 
+download: new-usb-ids new-pci-ids
+
 new-usb-ids:
        @curl -O http://www.linux-usb.org/usb.ids