From 4efe44ed271aeed8e25e909344788d92a0d9f82b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 11 Nov 2018 15:50:46 -0800 Subject: Fully upgraded to 4.10.12.7, including deprecating the old list/dict comprehension methods, in favor of the new native support. --- tools/upgrade.nom | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'tools/upgrade.nom') diff --git a/tools/upgrade.nom b/tools/upgrade.nom index 88057eb..469a127 100755 --- a/tools/upgrade.nom +++ b/tools/upgrade.nom @@ -1,10 +1,10 @@ -#!/usr/bin/env nomsu -V4.8.10 +#!/usr/bin/env nomsu -V4.10.12.7 # Tool to automatically update code from old versions of Nomsu. Usage: nomsu tools/upgrade.nom [-i] file1 file2 directory1 ... If "-i" is the first argument, upgrades will be performed in-place. Otherwise, the upgraded code will be printed. - + use "compatibility" use "lib/os.nom" @@ -44,9 +44,9 @@ for %path in %args: %code = (%NomsuCode::from (%Source %filename 1 (size of %file)) %file) %tree = (%code parsed) %uptree = (..) - %tree upgraded from (%start_version or (%tree.version or (Nomsu version))) to %version + %tree upgraded from (%start_version or (%tree.version or (Nomsu version))) to \ + ..%version %text = ((%uptree as nomsu)::text) - when: %inplace: say "Upgraded \%filename" @@ -58,4 +58,5 @@ for %path in %args: ..else: say (bright "\%filename will be changed") - else: say %text + else: + say %text -- cgit v1.2.3