diff options
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 (..) |
