aboutsummaryrefslogtreecommitdiff
path: root/lib/tools/upgrade.nom
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tools/upgrade.nom')
-rwxr-xr-xlib/tools/upgrade.nom7
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