Rewrite the manual page generation script in Python.
This:
- solves ‘-’ stripping issue (fixes #22681)
- makes that a copyright footer is generated correctly again
Also change the release process to swap gen-manpages and update RC steps, so that the pages will have the correct rc and/or final version.