diff options
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/autoformat.nom | 3 | ||||
| -rwxr-xr-x | tools/upgrade.nom | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tools/autoformat.nom b/tools/autoformat.nom index acabefb..1c591a0 100755 --- a/tools/autoformat.nom +++ b/tools/autoformat.nom @@ -10,10 +10,11 @@ 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) if %inplace: write %formatted to file %filename - ..else: say %formatted
\ No newline at end of file + ..else: say %formatted diff --git a/tools/upgrade.nom b/tools/upgrade.nom index a505aaa..690d4fb 100755 --- a/tools/upgrade.nom +++ b/tools/upgrade.nom @@ -1,5 +1,4 @@ #!/usr/bin/env nomsu -V2.5.4.3 -#!/usr/bin/env Nomsu -V2.4.4.3 use "core" use "compatibility" use "lib/os.nom" @@ -18,6 +17,7 @@ if (%args.1 is "-t"): for %path in %args: if (%path is "-i"): %inplace = (yes) for file %filename in %path: + unless (%filename matches "%.nom$"): do next %filename %tree = (parse (read file %filename) from %filename) %uptree = (%tree upgraded) %text = ".." @@ -35,4 +35,4 @@ for %path in %args: ..else: say (bright "\%filename will be changed") - else: say %text
\ No newline at end of file + else: say %text |
