From: Diego Elio Pettenò Date: Fri, 16 Nov 2012 04:23:39 +0000 (-0800) Subject: Makefile: simplify fetching. X-Git-Tag: hwids-20121119~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=34025047eaf2922c440f5086b4f0715cdf9490eb;p=oweals%2Fhwids.git Makefile: simplify fetching. --- diff --git a/Makefile b/Makefile index 08e8170..58592e5 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ fetch: $(Q)$(HTTPCAT) http://www.linux-usb.org/usb.ids.bz2 | bzcat > usb.ids $(Q)$(STATUS) -PV ?= $(shell date +%Y%m%d) +PV ?= $(shell awk '$$2 == "Date:" { gsub("-", "", $$3); print $$3; nextfile }' pci.ids usb.ids | sort | tail -n 1) P = hwids-$(PV) tag: