diff options
Diffstat (limited to 'release')
| -rwxr-xr-x | release/update-manpages | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/release/update-manpages b/release/update-manpages index f841f306..6ef3ec11 100755 --- a/release/update-manpages +++ b/release/update-manpages | |||
| @@ -47,6 +47,11 @@ def main(argv): | |||
| 47 | if not shutil.which('help2man'): | 47 | if not shutil.which('help2man'): |
| 48 | sys.exit('Please install help2man to continue.') | 48 | sys.exit('Please install help2man to continue.') |
| 49 | 49 | ||
| 50 | # Let repo know we're generating man pages so it can avoid some dynamic | ||
| 51 | # behavior (like probing active number of CPUs). We use a weird name & | ||
| 52 | # value to make it less likely for users to set this var themselves. | ||
| 53 | os.environ['_REPO_GENERATE_MANPAGES_'] = ' indeed! ' | ||
| 54 | |||
| 50 | # "repo branch" is an alias for "repo branches". | 55 | # "repo branch" is an alias for "repo branches". |
| 51 | del subcmds.all_commands['branch'] | 56 | del subcmds.all_commands['branch'] |
| 52 | (MANDIR / 'repo-branch.1').write_text('.so man1/repo-branches.1') | 57 | (MANDIR / 'repo-branch.1').write_text('.so man1/repo-branches.1') |
