aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/autoformat.nom8
-rwxr-xr-xtools/find_action.nom2
-rwxr-xr-xtools/parse.nom2
-rwxr-xr-xtools/replace.nom8
-rwxr-xr-xtools/test.nom2
-rwxr-xr-xtools/upgrade.nom8
6 files changed, 15 insertions, 15 deletions
diff --git a/tools/autoformat.nom b/tools/autoformat.nom
index 42e7dca..a915fa4 100755
--- a/tools/autoformat.nom
+++ b/tools/autoformat.nom
@@ -1,4 +1,4 @@
-#!/usr/bin/env nomsu -V3.8.7.6
+#!/usr/bin/env nomsu -V4.8.8.6
#
Auto-format Nomsu code. Usage:
nomsu tools/autoformat.nom [-i] file1 file2 directory1 ...
@@ -16,9 +16,9 @@ if (%args.1 is "-i"):
for %path in %args:
for file %filename in %path:
unless (%filename::matches "%.nom$"): do next %filename
- %formatted = ".."
- #!/usr/bin/env nomsu -V\(Nomsu version)
- \((parse (read file %filename) from %filename) as nomsu)
+ %formatted = "\
+ ..#!/usr/bin/env nomsu -V\(Nomsu version)
+ \((parse (read file %filename) from %filename) as nomsu)"
if %inplace:
write %formatted to file %filename
diff --git a/tools/find_action.nom b/tools/find_action.nom
index 4918966..e6fe90a 100755
--- a/tools/find_action.nom
+++ b/tools/find_action.nom
@@ -1,4 +1,4 @@
-#!/usr/bin/env nomsu -V3.8.7.6
+#!/usr/bin/env nomsu -V4.8.8.6
#
Find an action by its stub. Usage:
nomsu tools/find_action.nom "foo %" file1 file2 directory1 ...
diff --git a/tools/parse.nom b/tools/parse.nom
index ee4a722..9d728e8 100755
--- a/tools/parse.nom
+++ b/tools/parse.nom
@@ -1,4 +1,4 @@
-#!/usr/bin/env nomsu -V3.8.7.6
+#!/usr/bin/env nomsu -V4.8.8.6
#
Tool to print out a parse tree of files in an easy-to-read format. Usage:
nomsu tools/parse.nom file1 file2 directory1 ...
diff --git a/tools/replace.nom b/tools/replace.nom
index a0de4cc..c55793a 100755
--- a/tools/replace.nom
+++ b/tools/replace.nom
@@ -1,4 +1,4 @@
-#!/usr/bin/env nomsu -V3.8.7.6
+#!/usr/bin/env nomsu -V4.8.8.6
#
Tool to find and replace one tree with another.
nomsu tools/replace.nom [-i] tree_to_replace replacement file1 file2 directory1 ...
@@ -29,9 +29,9 @@ for %path in %args:
say "No changes in \%filename"
do next %filename
- %text = ".."
- #!/usr/bin/env nomsu -V\(%tree.version or (Nomsu version))
- \(%tree2 as nomsu)
+ %text = "\
+ ..#!/usr/bin/env nomsu -V\(%tree.version or (Nomsu version))
+ \(%tree2 as nomsu)"
if:
%inplace:
diff --git a/tools/test.nom b/tools/test.nom
index 5c42ec9..379f968 100755
--- a/tools/test.nom
+++ b/tools/test.nom
@@ -1,4 +1,4 @@
-#!/usr/bin/env nomsu -V3.8.7.6
+#!/usr/bin/env nomsu -V4.8.8.6
#
Tool to run all tests in a file (i.e. the code block inside a call to 'test %'). Usage:
nomsu tools/test.nom file1 file2 directory1 ...
diff --git a/tools/upgrade.nom b/tools/upgrade.nom
index d85465e..cd3fbbb 100755
--- a/tools/upgrade.nom
+++ b/tools/upgrade.nom
@@ -1,4 +1,4 @@
-#!/usr/bin/env nomsu -V3.8.7.6
+#!/usr/bin/env nomsu -V4.8.8.6
#
Tool to automatically update code from old versions of Nomsu. Usage:
nomsu tools/upgrade.nom [-i] file1 file2 directory1 ...
@@ -24,9 +24,9 @@ for %path in %args:
unless (%filename::matches "%.nom$"): do next %filename
%tree = (parse (read file %filename) from %filename)
%uptree = (%tree upgraded)
- %text = ".."
- #!/usr/bin/env nomsu -V\(Nomsu version)
- \(%uptree as nomsu)
+ %text = "\
+ ..#!/usr/bin/env nomsu -V\(Nomsu version)
+ \(%uptree as nomsu)"
if:
%inplace: