From 60a849f16253c33d996339c69017ff6e37b239b9 Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Sat, 8 Nov 2014 18:56:09 -0500 Subject: [PATCH] json_spirit: Add semi-automatic update macro Signed-off-by: Timothy Gu --- src/json_spirit.mk | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/json_spirit.mk b/src/json_spirit.mk index 834eb199..ab54d55a 100644 --- a/src/json_spirit.mk +++ b/src/json_spirit.mk @@ -15,8 +15,15 @@ $(PKG)_URL = $(PKG_MIRROR)/$(shell $(call ESCAPE_PKG,json_spirit)) $(PKG)_DEPS := gcc boost define $(PKG)_UPDATE - echo 'TODO: write update script for $(PKG).' >&2; - echo $($(PKG)_VERSION) + echo 'TODO: json_spirit automatic update explicitly disabled. Please ' >&2; + echo ' manually check and update.' >&2; + echo 'Latest:' >&2; + $(WGET) -q -O- 'http://www.codeproject.com/Articles/20027/JSON-Spirit-A-C-JSON-Parser-Generator-Implemented' | \ + $(SED) -n 's,.*/JSON_Spirit/json_spirit_v\([0-9.]*\)[.]zip.*".*,\1,p' | \ + head -1 >&2; + echo 'Current:' >&2; + echo $(json_spirit_VERSION) >&2; + echo $(json_spirit_VERSION) endef define $(PKG)_BUILD