From 8d97a858349853ba3e965c450a0c4c90fbdda554 Mon Sep 17 00:00:00 2001 From: Alexander Hedges Date: Sat, 7 Nov 2015 18:01:55 +0100 Subject: [PATCH] Ignore references to builtin on the mac On my system (OS-X 10.11) references to builtin are denoted by: ".so man1/builtin.1". So you also need to check against that. --- share/tools/create_manpage_completions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/tools/create_manpage_completions.py b/share/tools/create_manpage_completions.py index a4c31ba7d..8529eadef 100755 --- a/share/tools/create_manpage_completions.py +++ b/share/tools/create_manpage_completions.py @@ -759,7 +759,7 @@ def parse_manpage_at_path(manpage_path, output_directory): return # Ignore the millions of links to BUILTIN(1) - if manpage.find('BUILTIN 1') != -1: + if 'BUILTIN 1' in manpage or 'builtin.1' in manpage: return # Clear the output list