From c78843baa112e2e61d4c887a7eb61e79d2ea8d37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jukka=20Jyl=C3=A4nki?= Date: Sun, 13 Nov 2016 03:45:59 +0300 Subject: [PATCH] Add new command emsdk update-tags to only update to the most recent nightly and tagged tags. --- emsdk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/emsdk b/emsdk index fc69d67..bf7671f 100755 --- a/emsdk +++ b/emsdk @@ -1767,8 +1767,11 @@ def main(): parameter, also historical versions are shown. - emsdk update - Fetches a list of updates from the net (but - does not install them) + emsdk update - Updates emsdk to the newest version, and also + runs 'update-tags' (below). + + emsdk update-tags - Fetches the most up to date list of available + Emscripten tagged and nightly releases. emsdk install [options] ... - Downloads and installs given tools or SDKs. @@ -1977,6 +1980,9 @@ def main(): update_emsdk() silentremove(sdk_path(EMSDK_SET_ENV)) # Clean up litter after old emsdk update which may have left this temp file around. return 0 + elif cmd == 'update-tags': + fetch_emscripten_tags() + return 0 elif cmd == 'activate': permanently_activate = '--global' in sys.argv if permanently_activate: