aboutsummaryrefslogtreecommitdiff
path: root/tools/upgrade.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-11-11 15:50:46 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-11-11 15:50:46 -0800
commit4efe44ed271aeed8e25e909344788d92a0d9f82b (patch)
tree73766440b53031d4fc8210dbe3b0aece47e6b852 /tools/upgrade.nom
parentba03cb67c3c8ba53451eba25dd2186f095cd1db2 (diff)
Fully upgraded to 4.10.12.7, including deprecating the old list/dict
comprehension methods, in favor of the new native support.
Diffstat (limited to 'tools/upgrade.nom')
-rwxr-xr-xtools/upgrade.nom11
1 files changed, 6 insertions, 5 deletions
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