From: Diego Elio Pettenò Date: Sun, 2 Dec 2012 06:32:01 +0000 (-0800) Subject: Update makefile to handle tagging of oui.txt. X-Git-Tag: hwids-20121202.1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1c18250a9dd236f3299e621e0e3597d03c40543e;p=oweals%2Fhwids.git Update makefile to handle tagging of oui.txt. --- diff --git a/Makefile b/Makefile index 58592e5..95b304e 100644 --- a/Makefile +++ b/Makefile @@ -12,9 +12,10 @@ endif fetch: $(Q)$(HTTPCAT) http://pci-ids.ucw.cz/v2.2/pci.ids.bz2 | bzcat > pci.ids $(Q)$(HTTPCAT) http://www.linux-usb.org/usb.ids.bz2 | bzcat > usb.ids + $(Q)$(HTTPCAT) http://standards.ieee.org/develop/regauth/oui/oui.txt > oui.txt $(Q)$(STATUS) -PV ?= $(shell awk '$$2 == "Date:" { gsub("-", "", $$3); print $$3; nextfile }' pci.ids usb.ids | sort | tail -n 1) +PV ?= $(shell ( awk '$$2 == "Date:" { print $$3; nextfile }' pci.ids usb.ids; git log --format=format:%ci -1 -- oui.txt | cut -d ' ' -f1; ) | sort | tail -n 1 | tr -d -) P = hwids-$(PV) tag: