diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-03-20 15:55:57 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-03-20 15:55:57 -0700 |
| commit | e665d9725c4bb02f4c18d16527367f424cb880fa (patch) | |
| tree | aed161ee6b338c2bad2312591f746459414ccafa /lib/tools/upgrade.nom | |
| parent | 606fd090002f3d545cbd58440e96624907846f45 (diff) | |
Auto-updated to 7.0.0 syntax and removed some shims.
Diffstat (limited to 'lib/tools/upgrade.nom')
| -rwxr-xr-x | lib/tools/upgrade.nom | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/tools/upgrade.nom b/lib/tools/upgrade.nom index debce62..ae8c639 100755 --- a/lib/tools/upgrade.nom +++ b/lib/tools/upgrade.nom @@ -1,5 +1,6 @@ -#!/usr/bin/env nomsu -V6.15.13.8 -# +#!/usr/bin/env nomsu -V7.0.0 + +### 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 @@ -27,7 +28,7 @@ command line program with $args: unless $file: fail "File does not exist: \$filename" $leading_indent = ($file, matching "\n*([ ]*)") - $code = (NomsuCode from (Source $filename 1 (#$file)) $file) + $code = (NomsuCode from (Source $filename 1 #$file) $file) $tree = ($code parsed $start_version) $uptree = $tree upgraded from ($start_version or ($tree.version or $(NOMSU VERSION))) to |
