diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-11-20 14:52:59 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-11-20 14:54:40 -0800 |
| commit | 2bbc035f5dcc3ecd62724b9d1de0e7e3ea902379 (patch) | |
| tree | 34a83497f7570946b6252183b3e8fe0ce2010595 /compatibility/compatibility.nom | |
| parent | f30413853063483147d941ffccc4b663b71bc943 (diff) | |
Simplifying the filesystem code (no longer entangled with nomsupath) and
using that to simplify the tools. Now the tools directly take lists of
file paths rather than things that might go through nomsupath or
directories or get processed by filetype. Use your shell for globbing stuff like
`nomsu tools/test.nom core/*.nom`
Diffstat (limited to 'compatibility/compatibility.nom')
| -rw-r--r-- | compatibility/compatibility.nom | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compatibility/compatibility.nom b/compatibility/compatibility.nom index 5be8eeb..4d96d89 100644 --- a/compatibility/compatibility.nom +++ b/compatibility/compatibility.nom @@ -92,7 +92,11 @@ externally [..] add %k = (%v upgraded from %start_version to %end_version) set %with_upgraded_args's metatable to (%tree's metatable) %tree = (%UPGRADES.%ver %with_upgraded_args %end_version) - %tree.shebang = "#!/usr/bin/env nomsu -V\%end_version\n" + if (%tree.version != %end_version): + %tree = (SyntaxTree {: for %k = %v in %tree: add %k = %v}) + %tree.version = %end_version + if %tree.shebang: + %tree.shebang = "#!/usr/bin/env nomsu -V\%end_version\n" return %tree externally (%tree upgraded from %start_version) means (..) |
