Rewrites generator references for upload to Polygon.
Locally a script line starts with Config.json.generators[].name, which is
free-form (gen-random). Polygon resolves the same token against the
uploaded source file name without its extension (gen for gen.cpp), so a
script pushed verbatim breaks whenever the two differ. Comments, FreeMarker
directives, arguments and targets are preserved byte-for-byte; only the
leading generator token of each command line is swapped.
Rewrites generator references for upload to Polygon.
Locally a script line starts with
Config.json.generators[].name, which is free-form (gen-random). Polygon resolves the same token against the uploaded source file name without its extension (genforgen.cpp), so a script pushed verbatim breaks whenever the two differ. Comments, FreeMarker directives, arguments and targets are preserved byte-for-byte; only the leading generator token of each command line is swapped.