From 34025047eaf2922c440f5086b4f0715cdf9490eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Diego=20Elio=20Petten=C3=B2?= Date: Thu, 15 Nov 2012 20:23:39 -0800 Subject: [PATCH] Makefile: simplify fetching. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.25.1