Closes #20879. Replaces #22695.
Note for reviewers. Some touched shell scripts are not being run in CI, therefore they require more thorough reviewing:
contrib/devtools/gen-manpages.sh
contrib/macdeploy/detached-sig-apply.sh
contrib/windeploy/detached-sig-create.sh
src/qt/res/animation/makespinner.sh