diff options
author | Timothy Gu <timothygu99@gmail.com> | 2014-11-08 23:56:09 (GMT) |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2014-11-08 23:57:55 (GMT) |
commit | 60a849f16253c33d996339c69017ff6e37b239b9 (patch) | |
tree | cfef69f2d432516ead3b3b409e3a5e96bf0d2b1f /src/json_spirit.mk | |
parent | 452dd1fd25a8e1a6451a66994e00564ae7673d81 (diff) | |
download | mxe-60a849f16253c33d996339c69017ff6e37b239b9.zip mxe-60a849f16253c33d996339c69017ff6e37b239b9.tar.gz mxe-60a849f16253c33d996339c69017ff6e37b239b9.tar.bz2 |
json_spirit: Add semi-automatic update macro
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/json_spirit.mk')
-rw-r--r-- | src/json_spirit.mk | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/json_spirit.mk b/src/json_spirit.mk index 834eb19..ab54d55 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 |