diff options
Diffstat (limited to 'release/update_manpages.py')
| -rw-r--r-- | release/update_manpages.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/release/update_manpages.py b/release/update_manpages.py index 8bd69b6a7..ecf51bb7a 100644 --- a/release/update_manpages.py +++ b/release/update_manpages.py | |||
| @@ -66,7 +66,11 @@ def main(argv: List[str]) -> int: | |||
| 66 | parser = get_parser() | 66 | parser = get_parser() |
| 67 | opts = parser.parse_args(argv) | 67 | opts = parser.parse_args(argv) |
| 68 | 68 | ||
| 69 | if not shutil.which("help2man"): | 69 | help2man = ["help2man"] |
| 70 | cipd_help2man = TOPDIR / ".cipd_bin/bin/help2man" | ||
| 71 | if cipd_help2man.exists(): | ||
| 72 | help2man = ["perl", cipd_help2man] | ||
| 73 | elif not shutil.which("help2man"): | ||
| 70 | sys.exit("Please install help2man to continue.") | 74 | sys.exit("Please install help2man to continue.") |
| 71 | 75 | ||
| 72 | # Let repo know we're generating man pages so it can avoid some dynamic | 76 | # Let repo know we're generating man pages so it can avoid some dynamic |
| @@ -81,7 +85,7 @@ def main(argv: List[str]) -> int: | |||
| 81 | version = RepoSourceVersion() | 85 | version = RepoSourceVersion() |
| 82 | cmdlist = [ | 86 | cmdlist = [ |
| 83 | [ | 87 | [ |
| 84 | "help2man", | 88 | *help2man, |
| 85 | "-N", | 89 | "-N", |
| 86 | "-n", | 90 | "-n", |
| 87 | f"repo {cmd} - manual page for repo {cmd}", | 91 | f"repo {cmd} - manual page for repo {cmd}", |
| @@ -100,7 +104,7 @@ def main(argv: List[str]) -> int: | |||
| 100 | ] | 104 | ] |
| 101 | cmdlist.append( | 105 | cmdlist.append( |
| 102 | [ | 106 | [ |
| 103 | "help2man", | 107 | *help2man, |
| 104 | "-N", | 108 | "-N", |
| 105 | "-n", | 109 | "-n", |
| 106 | "repository management tool built on top of git", | 110 | "repository management tool built on top of git", |
