aboutsummaryrefslogtreecommitdiff
path: root/tools/upgrade.nom
diff options
context:
space:
mode:
Diffstat (limited to 'tools/upgrade.nom')
-rw-r--r--tools/upgrade.nom16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/upgrade.nom b/tools/upgrade.nom
index 26b01bd..14f7ee0 100644
--- a/tools/upgrade.nom
+++ b/tools/upgrade.nom
@@ -1,19 +1,19 @@
-#!/usr/bin/env Nomsu -V 2.2.4.3
+#!/usr/bin/env Nomsu -V2.3.4.3
use "core"
use "compatibility"
use "lib/os.nom"
-%args <- (command line args)
-%inplace <- (no)
+%args = (command line args)
+%inplace = (no)
if (%args.1 is "-i"):
- %inplace <- (yes)
+ %inplace = (yes)
remove index 1 from %args
for %path in %args:
- if (%path is "-i"): %inplace <- (yes)
+ if (%path is "-i"): %inplace = (yes)
for file %filename in %path:
- %tree <- (parse (read file %filename) from %filename)
- %tree <- (%tree upgraded from %tree.version to (Nomsu version))
- %text <- "#!/usr/bin/env nomsu -V\(Nomsu version)\n\(%tree as nomsu)"
+ %tree = (parse (read file %filename) from %filename)
+ %tree = (%tree upgraded from %tree.version to (Nomsu version))
+ %text = "#!/usr/bin/env nomsu -V\(Nomsu version)\n\(%tree as nomsu)"
if %inplace:
write %text to file %filename
..else: